public ChangeClientCertificateViewModel(IMonitoringModel monitoringModel) { _monitoringModel = monitoringModel; ShowGenerateCertificateWindowCommand = new MultipleDelegateCommand(ShowGenerateCertificateWindow, CanShowGenerateCertificateWindow); _monitoringModel.ConnectionStatusChanged += monitoringModel_ConnectionStatusChanged; _monitoringModel.PropertyChanged += MonitoringModel_PropertyChanged; }
public MonitoringTreeViewModel(IMonitoringModel model) : base(model as ModelBase) { _model = model; _model.PropertyChanged += model_PropertyChanged; ShowProductsCommand = new MultipleDelegateCommand(ShowProducts, CanShowProducts); SensorDoubleClickCommand = new SingleDelegateCommand(ExpandSensor); MenuShowSettingsCommand = new SingleDelegateCommand(ShowSettingsWindow); GenerateCertificateCommand = new SingleDelegateCommand(ShowGenerateCertificateWindow); }
public GenerateCertificateWindowViewModel(IMonitoringModel monitoringModel) { _monitoringModel = monitoringModel; GenerateCertificateCommand = new MultipleDelegateCommand(GenerateNewClientCertificate, CanGenerateNewClientCertificate); }
public GenerateCertificateWindow(IMonitoringModel monitoringModel) { _viewModel = new GenerateCertificateWindowViewModel(monitoringModel); this.DataContext = _viewModel; InitializeComponent(); }