Example #1
0
        private void AddBtn_Click(object sender, EventArgs e)
        {
            Password_AE frm = new Password_AE("", path);

            frm.ShowDialog();
            LoadFile(path, false);
        }
Example #2
0
 private void EditBtn_Click(object sender, EventArgs e)
 {
     if (PasswordsGrd.SelectedRows.Count == 1)
     {
         int         id  = (int)PasswordsGrd.SelectedRows[0].Cells["ID_col"].Value;
         Password_AE frm = new Password_AE(id, path);
         frm.ShowDialog();
         LoadFile(path, false);
     }
 }
Example #3
0
 private void SaveBtn_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(Passwordtxt.Text))
     {
         try
         {
             Password_AE frm = new Password_AE(Passwordtxt.Text, defaultFilePath);
             frm.ShowDialog();
         }
         catch
         {
             //Catch Exception Of Accessing Disposed Object
             //Do Nothing If Save Canceld
         }
     }
     else
     {
         MessageBox.Show("Please Generate password First.");
     }
 }