public EditPassword(PasswordItemDetails pItem, MainWindow mainIn) { InitializeComponent(); _main = mainIn; btnSavenew.IsEnabled = false; _idx = pItem.Index; Error = PasswordManagerStatus.UserCancelled; _mgr = _main.PasswordManager(); if (pItem != null) { txtPassfor.Text = pItem.Login + " at " + pItem.Account; } }
public EditDialog(MainWindow mainIn, PasswordItemDetails pItem) { InitializeComponent(); _main = mainIn; _mgr = _main.PasswordManager(); if (pItem != null) { _pNewItem = new PasswordItemDetails(pItem.Index); txtEAccount.Text = pItem.Account; txtEURL.Text = pItem.UrLstring; txtELogin.Text = pItem.Login; txtEPassword.Text = "***************************"; _pNewItem = pItem; } }