Exemplo n.º 1
0
        private void AddEntry()
        {
            Dialog_AddEntry dae = new Dialog_AddEntry();
            DialogResult    res = dae.ShowDialog();

            if (res == DialogResult.OK)
            {
                string name     = dae.tbName.Text;
                string username = dae.tbUsername.Text;
                string url      = dae.UrlString;
                string password = dae.rbtnGenerate.Checked ? dae.lblPwdGenerated.Text : dae.tbPwd.Text;
                Entry  newEntry = new Entry(name, username, url, password);
                _entries.AddEntry(_dbXmlDoc, newEntry);
            }
        }