/// <summary> /// Occurs when the list of passwords has changed. /// </summary> protected void OnPasswordsChanged(object sender, NotifyEventArgs <Password> e) { OnPropertyChanged("Passwords"); Category parent = Parent; while (parent != null) { parent.OnPropertyChanged("NestedPasswords"); parent = parent.Parent; } }
void OnFoldersChanged(object sender, NotifyEventArgs <Folder> e) { ReorderChildren(); Folder folder = e.Item; if (folder != null) { folder.NotifyPasswordChanged(); } OnPropertyChanged("Folders"); }
void OnFoldersChanged(object sender, NotifyEventArgs <Folder> e) { OnPropertyChanged("Folders"); switch (e.Type) { case ChangedEventType.Added: e.Item.Passwords.Add(this); break; case ChangedEventType.Removed: e.Item.Passwords.Remove(this); break; } }
/// <summary> /// Occurs when the list of categories has changed. /// </summary> protected void OnCategoriesChanged(object sender, NotifyEventArgs <Category> e) { ReorderChildren(); OnPropertyChanged("Categories"); }
void OnFieldsChanged(object sender, NotifyEventArgs <TemplateField> e) { OnPropertyChanged("Fields"); }
void OnPasswordsChanged(object sender, NotifyEventArgs <Password> e) { OnPropertyChanged("Passwords"); }