Esempio n. 1
0
        public RunExecutableViewModel(Window dialog, IFileDialogService fileDialogService) : base(dialog)
        {
            _fileDialogService = fileDialogService;

            CanExecuteOKCommand = () => !string.IsNullOrWhiteSpace(ExecutablePath);
            OKCommand.ObservesProperty(() => ExecutablePath);
        }
 public SelectProcessesViewModel(Window dialog, DriverInterface driver) : base(dialog)
 {
     _driver             = driver;
     CanExecuteOKCommand = () => SelectedProcesses.Count > 0;
     OKCommand           = OKCommand.ObservesProperty(() => SelectedItem);
 }
Esempio n. 3
0
 public NewImageViewModel(Window window) : base(window)
 {
     CanExecuteOKCommand = () => !string.IsNullOrWhiteSpace(ImageName);
     OKCommand.ObservesProperty(() => ImageName);
 }
 public AttachToProcessViewModel(Window dialog) : base(dialog)
 {
     CanExecuteOKCommand = () => SelectedProcess != null;
     OKCommand.ObservesProperty(() => SelectedProcess);
 }
 public ProcessNamesFilterViewModel(Window dialog) : base(dialog)
 {
     CanExecuteOKCommand = () => Names.Length > 0;
     OKCommand           = OKCommand.ObservesProperty(() => Names);
 }