Exemple #1
0
 public NewEntryBox(CredManager.Data.CredManager cMgr)
 {
     InitializeComponent();
     this._cMgr                 = cMgr;
     _isNew                     = true;
     btnAddNewOK.Content        = "Add";
     this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
 }
        public ListViewCtrl(CredManager.Data.CredManager cMgr)
        {
            InitializeComponent();
            this.cMgr = cMgr;

            this.DataViewRes.ItemsSource = this.cMgr.CredItems.OrderBy(i => i.Name);

            this.view        = (CollectionView)CollectionViewSource.GetDefaultView(DataViewRes.ItemsSource);
            this.view.Filter = FilterOn;
        }
Exemple #3
0
 public NewEntryBox(CredManager.Data.CredManager cMgr, CredItem item)
 {
     InitializeComponent();
     this._cMgr          = cMgr;
     this._updatingCItem = item;
     _isNew = false;
     btnAddNewOK.Content        = "Save";
     KeyNameTb.Text             = item.Name.Trim();
     UsernameTb.Text            = item.Username.Trim();
     PwdTb.Text                 = item.Password.Trim();
     this.Title                 = "Edit " + item.Name;
     this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
 }
Exemple #4
0
 public Login(CredManager.Data.CredManager cMgr)
 {
     InitializeComponent();
     this.cMgr = cMgr;
 }