Пример #1
0
		private ApplicationModel()
		{
			Notifications = new BindableCollection<Notification>(x=>x.Message);
			LastNotification = new Observable<string>();
			Server = new Observable<ServerModel> {Value = new ServerModel()};
		    State = new ApplicationState();
		}
Пример #2
0
		private ApplicationModel()
		{
			Notifications = new BindableCollection<Notification>(x => x.Message);
			Notifications.CollectionChanged += delegate
			{
				OnPropertyChanged(() => ErrorCount);
			};

			LastNotification = new Observable<string>();
			Server = new Observable<ServerModel> { Value = new ServerModel() };

			Alerts = new ObservableCollection<Alert>();

			Server.Value.SelectedDatabase.PropertyChanged += (sender, args) => Server.Value.SelectedDatabase.Value.UpdateDatabaseDocument();
			State = new ApplicationState();
		}