public DBVersionsViewSateManager(DBVersionsViewModelData dbVersionsViewModelData, DBVersionsControls dbVersionsControls, INotificationsViewModel notificationsViewModel) { _dbVersionsViewModelData = dbVersionsViewModelData; _dbVersionsControls = dbVersionsControls; _notificationsViewModel = notificationsViewModel; }
public EditProjectViewSateManager(EditProjectControls editProjectControls, ProjectConfigErrorMessages projectConfigErrorMessages, INotificationsViewModel notificationsViewModel) { _editProjectControls = editProjectControls; _projectConfigErrorMessages = projectConfigErrorMessages; _notificationsViewModel = notificationsViewModel; }
private void OnNotificationReceived(NotificationInfo info) { if (info == null) { return; } INotificationsViewModel viewModel = container.Resolve <INotificationsViewModel>(); viewModel.MessageText = info.Text; viewModel.NotificationType = info.NotificationType; CommonDialog dialog = new CommonDialog() { HeaderText = info.NotificationType.ToString(), DialogButtons = DialogButtons.Ok, DialogContent = new NotificationControl(viewModel) }; dialog.ShowDialog(); }
public NotificationControl(INotificationsViewModel viewModel) { InitializeComponent(); DataContext = viewModel; }