Exemplo n.º 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();
		}
Exemplo n.º 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();
		}