Ejemplo 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);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Resets all data.
 /// </summary>
 protected internal override void Reset()
 {
     folders   = null;
     passwords = null;
     OnPropertyChanged("Folders");
     OnPropertyChanged("Passwords");
     base.Reset();
 }
Ejemplo 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();
 }
Ejemplo 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;
     }
 }
Ejemplo 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();
        }
Ejemplo 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;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Resets the list of <see cref="T:Password"/>s.
 /// </summary>
 public void ResetPasswords()
 {
     passwords = null;
     OnPropertyChanged("Passwords");
 }