finished candybox
This commit is contained in:
@@ -28,6 +28,8 @@ namespace VisionBuilder.UI.Common
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedFor(nameof(CanStart))]
|
||||
[NotifyPropertyChangedFor(nameof(CanStop))]
|
||||
[NotifyPropertyChangedFor(nameof(CanPause))]
|
||||
[NotifyPropertyChangedFor(nameof(CanResume))]
|
||||
[NotifyCanExecuteChangedFor(nameof(SelectRecipeCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(StartCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(StopCommand))]
|
||||
@@ -42,13 +44,20 @@ namespace VisionBuilder.UI.Common
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedFor(nameof(CameraLabelAndStatus))]
|
||||
[NotifyPropertyChangedFor(nameof(IsResumed))]
|
||||
[NotifyPropertyChangedFor(nameof(CanPause))]
|
||||
[NotifyPropertyChangedFor(nameof(CanResume))]
|
||||
[NotifyCanExecuteChangedFor(nameof(ResumeCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(PauseCommand))]
|
||||
private bool _isPaused;
|
||||
|
||||
public bool IsResumed => !IsPaused;
|
||||
|
||||
public bool CanStop => IsRunning;
|
||||
public bool CanStart => !IsRunning && SelectedRecipe!=null;
|
||||
|
||||
public bool CanPause => IsRunning && !IsPaused;
|
||||
public bool CanResume => IsRunning && IsPaused;
|
||||
|
||||
public bool IsNotRunning => !IsRunning;
|
||||
private bool _handlingEnabled = true;
|
||||
|
||||
@@ -62,6 +71,8 @@ namespace VisionBuilder.UI.Common
|
||||
[NotifyCanExecuteChangedFor(nameof(SelectRecipeCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(StartCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(StopCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(ResumeCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(PauseCommand))]
|
||||
[NotifyPropertyChangedFor(nameof(RecipeSelected))]
|
||||
[NotifyPropertyChangedFor(nameof(RecipeNotSelected))]
|
||||
private RecipeData? _selectedRecipe;
|
||||
|
||||
Reference in New Issue
Block a user