예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }