public MainWindowViewModel() { ElixirOutputMsgs = new ObservableCollection<Log>(); ElxGenCmd = new RelayCommand(pars => ElxGenClicked()); ShowFindSqlServerCmd = new RelayCommand(pars => ShowFindSqlServerClicked()); SelectionChangedCmd = new RelayCommand(pars => SelectionChanged(pars)); }
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(); }
public ModalWithFilesCountViewModel() { OkCmd = new RelayCommand(pars => OkClicked()); }