Example #1
0
        /// <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;
            }
        }
Example #2
0
        void OnFoldersChanged(object sender, NotifyEventArgs <Folder> e)
        {
            ReorderChildren();

            Folder folder = e.Item;

            if (folder != null)
            {
                folder.NotifyPasswordChanged();
            }
            OnPropertyChanged("Folders");
        }
Example #3
0
        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;
            }
        }
Example #4
0
 /// <summary>
 /// Occurs when the list of categories has changed.
 /// </summary>
 protected void OnCategoriesChanged(object sender, NotifyEventArgs <Category> e)
 {
     ReorderChildren();
     OnPropertyChanged("Categories");
 }
Example #5
0
 void OnFieldsChanged(object sender, NotifyEventArgs <TemplateField> e)
 {
     OnPropertyChanged("Fields");
 }
Example #6
0
 void OnPasswordsChanged(object sender, NotifyEventArgs <Password> e)
 {
     OnPropertyChanged("Passwords");
 }