public SettingsViewModel(
            IConsoleService consoleService,
            ISettingsService settingsService,
            ISerialPortService serialPortService,
            IConsoleFormatService consoleFormatService)
        {
            ConsoleService       = consoleService;
            SettingsService      = settingsService;
            SerialPortService    = serialPortService;
            ConsoleFormatService = consoleFormatService;

            OkCommand     = new RelayCommand(OkCommandImpl);
            CancelCommand = new RelayCommand(CancelCommandImpl);
            ApplyCommand  = new RelayCommand(ApplyCommandImpl);
        }
Beispiel #2
0
        public SessionSetupViewModel(
            IConsoleService consoleService,
            ISettingsService settingsService,
            ISerialPortService serialPortService,
            IConsoleFormatService consoleFormatService,
            IDialogService dialogService)
        {
            // Services

            ConsoleService       = consoleService;
            SettingsService      = settingsService;
            SerialPortService    = serialPortService;
            ConsoleFormatService = consoleFormatService;
            DialogService        = dialogService;

            // Commands

            StartCommand       = new RelayCommand(StartCommandImpl);
            CancelCommand      = new RelayCommand(CancelCommandImpl);
            MakeDefaultCommand = new RelayCommand(MakeDefaultCommandImpl);
        }