Beispiel #1
0
 private void LoadDatabase()
 {
     _Serializer = new Serializer<Database>(_Configuration.Database);
     _Database = _Serializer.Load();
     foreach (var notification in _Database.Notifications)
         notification.Initialise(false);
     _Database.Notifications.Sort(CompareNotifications);
 }
 public MainWindowDataContext(Database database)
 {
     Notifications = CollectionViewSource.GetDefaultView(database.Notifications);
 }