finished candybox
This commit is contained in:
@@ -37,12 +37,16 @@ namespace VisionBuilder.UI.Windows.Components
|
||||
btnStart.Command=_singleCameraVm.StartCommand;
|
||||
btnStop.Command=_singleCameraVm.StopCommand;
|
||||
btnSelectRecipe.Command=_singleCameraVm.SelectRecipeCommand;
|
||||
btnPause.Command=_singleCameraVm.PauseCommand;
|
||||
btnResume.Command=_singleCameraVm.ResumeCommand;
|
||||
|
||||
lblCameraName.DataBindings.Add("Text", _singleCameraVm, nameof(_singleCameraVm.CameraLabelAndStatus), true, DataSourceUpdateMode.OnPropertyChanged);
|
||||
btnSelectRecipe.DataBindings.Add("Text", _singleCameraVm, nameof(_singleCameraVm.CurrentRecipeName), true, DataSourceUpdateMode.OnPropertyChanged);
|
||||
btnStart.DataBindings.Add(nameof(btnStart.Visible), _singleCameraVm, nameof(_singleCameraVm.CanStart), true, DataSourceUpdateMode.OnPropertyChanged);
|
||||
btnStop.DataBindings.Add(nameof(btnStop.Visible), _singleCameraVm, nameof(_singleCameraVm.CanStop), true, DataSourceUpdateMode.OnPropertyChanged);
|
||||
btnSelectRecipe.DataBindings.Add(nameof(btnSelectRecipe.Primary), _singleCameraVm, nameof(_singleCameraVm.RecipeNotSelected), true, DataSourceUpdateMode.OnPropertyChanged);
|
||||
btnPause.DataBindings.Add(nameof(btnPause.Visible), _singleCameraVm, nameof(_singleCameraVm.CanPause), true, DataSourceUpdateMode.OnPropertyChanged);
|
||||
btnResume.DataBindings.Add(nameof(btnResume.Visible), _singleCameraVm, nameof(_singleCameraVm.CanResume), true, DataSourceUpdateMode.OnPropertyChanged);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user