コード例 #1
0
 public MainWindowViewModel()
 {
     ElixirOutputMsgs = new ObservableCollection<Log>();
     ElxGenCmd = new RelayCommand(pars => ElxGenClicked());
     ShowFindSqlServerCmd = new RelayCommand(pars => ShowFindSqlServerClicked());
     SelectionChangedCmd = new RelayCommand(pars => SelectionChanged(pars));
 }
コード例 #2
0
 public ModalFindSqlServerViewModel()
 {
     SqlInstanceChangedCmd = new RelayCommand(pars => EventInstanceChanged(pars.ToString()));
     SqlCatalogChangedCmd = new RelayCommand(pars => EventCatalogChanged(pars.ToString()));
     OkCmd = new RelayCommand(pars => OkClicked());
     CancelCmd = new RelayCommand(pars => CancelClicked());
     BackgroundWorker sqlInstancesWorker = new BackgroundWorker();
     sqlInstancesWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(sqlInstancesWorker_RunWorkerCompleted);
     sqlInstancesWorker.DoWork += new DoWorkEventHandler(sqlInstancesWorker_DoWork);
     sqlInstancesWorker.RunWorkerAsync();
 }
コード例 #3
0
 public ModalWithFilesCountViewModel()
 {
     OkCmd = new RelayCommand(pars => OkClicked());
 }