Exemplo n.º 1
0
 private void AddVault()
 {
     if (!Vaults.Contains(this))
     {
         Vaults.Add(this);
     }
 }
Exemplo n.º 2
0
 private void RefreshVaults()
 {
     Vaults.Clear();
     foreach (VaultIndex curVaultIndex in VaultIndexFile.Instance.Indexes)
     {
         Vaults.Add(curVaultIndex);
     }
     NotifyPropertyChanged("IsEmpty");
     NotifyPropertyChanged("ShowVaultListTip");
 }
Exemplo n.º 3
0
        public void SetParameter(String key, Object parameter)
        {
            App.AppLogger.Logger.Log(devoctomy.DFramework.Logging.Interfaces.LoggerMessageType.Information | devoctomy.DFramework.Logging.Interfaces.LoggerMessageType.VerboseMed, "VaultListViewModel SetParameter '{0}'.", key);

            switch (key)
            {
            case "Vaults":
            {
                Vaults.Clear();
                ObservableCollection <VaultIndex> vaultIndexes = (ObservableCollection <VaultIndex>)parameter;
                foreach (VaultIndex curVaultIndex in vaultIndexes)
                {
                    Vaults.Add(curVaultIndex);
                }
                NotifyPropertyChanged("IsEmpty");
                NotifyPropertyChanged("ShowVaultListTip");

                break;
            }
            }
        }