//добавление учетной записи
        private void addCredentialToolStripMenuItem_Click(object sender, EventArgs e)
        {          
            Credential_Edit frm = new Credential_Edit();
            DialogResult result = frm.ShowDialog();
            if (result == DialogResult.OK)
            {
                LoadData();
            }

        }
Ejemplo n.º 2
0
        //добавление учетной записи
        private void addCredentialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Credential_Edit frm    = new Credential_Edit();
            DialogResult    result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                LoadData();
            }
        }
 //редактирование
 private void editCredentialToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listBoxCredentials.SelectedItem != null)
     {
         string credential = listBoxCredentials.SelectedItem.ToString();
         Credential_Edit frm = new Credential_Edit(credential);
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             LoadData();
         }
     }
 }
Ejemplo n.º 4
0
 //редактирование
 private void editCredentialToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listBoxCredentials.SelectedItem != null)
     {
         string          credential = listBoxCredentials.SelectedItem.ToString();
         Credential_Edit frm        = new Credential_Edit(credential);
         DialogResult    result     = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             LoadData();
         }
     }
 }