void openAddContact() { if (tabControl1.SelectedIndex == 0) { using (FrmEditContact frmEditContact = new FrmEditContact()) { frmEditContact.ShowDialog(this); } } else { using (FrmMyKeys frmMyKeys = new FrmMyKeys()) { frmMyKeys.ShowDialog(this); } } }
void openCertificates() { FrmMyKeys frmCertificates = new FrmMyKeys(); frmCertificates.ShowDialog(); }