Esempio n. 1
0
 private void EnsurePasswords()
 {
     if (passwords == null)
     {
         passwords          = Id != 0 ? new NotifyList <Password>(Context.GetPasswordsByFolderId(Id)) : new NotifyList <Password>();
         passwords.Changed += new EventHandler <NotifyEventArgs <Password> >(OnPasswordsChanged);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Resets all data.
 /// </summary>
 protected internal override void Reset()
 {
     folders   = null;
     passwords = null;
     OnPropertyChanged("Folders");
     OnPropertyChanged("Passwords");
     base.Reset();
 }
Esempio n. 3
0
 /// <summary>
 /// Resets all data.
 /// </summary>
 protected internal override void Reset()
 {
     categories = null;
     passwords  = null;
     fields     = null;
     OnPropertyChanged("Categories");
     OnPropertyChanged("Passwords");
     OnPropertyChanged("Fields");
     base.Reset();
 }
Esempio n. 4
0
 /// <summary>
 /// Clears all fields from this password.
 /// </summary>
 private void ClearFields()
 {
     if (fields != null)
     {
         foreach (Field field in fields)
         {
             field.Dispose();
         }
         fields.Clear();
         fields = null;
     }
 }
Esempio n. 5
0
        protected internal override void Reset()
        {
            foreach (var folder in Folders)
            {
                folder.ResetPasswords();
            }

            fields  = null;
            folders = null;
            OnPropertyChanged("Fields");
            OnPropertyChanged("Folders");
            OnPropertyChanged("Name");
            OnPropertyChanged("IsFavorite");
            OnPropertyChanged("PasswordFolders");
            base.Reset();
        }
Esempio n. 6
0
 /// <summary>
 /// Undoing a template is very easy:
 /// Since there are only the TemplateFields affected, the Fields list must only be recreated to gather them from Database again.
 /// </summary>
 public void UndoTemplate()
 {
     fields = null;
     RaisePropertyChanged("Fields");
     IsModified = false;
 }
Esempio n. 7
0
 /// <summary>
 /// Resets the list of <see cref="T:Password"/>s.
 /// </summary>
 public void ResetPasswords()
 {
     passwords = null;
     OnPropertyChanged("Passwords");
 }