private ApplicationModel() { Notifications = new BindableCollection<Notification>(x=>x.Message); LastNotification = new Observable<string>(); Server = new Observable<ServerModel> {Value = new ServerModel()}; State = new ApplicationState(); }
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(); }