private void запаролитьToolStripMenuItem_Click(object sender, EventArgs e) { if (isPass) { cheakpass = new CheakPass(); cheakpass.Show(); cheakpass.FormClosed += MyClosedHandlerCheakPass3; } else { newPass = new Password(); newPass.Show(); newPass.FormClosed += MyClosedHandlerNewPass; } }
private void удалениеЗаписейToolStripMenuItem_Click(object sender, EventArgs e) { if (isPass) { cheakpass = new CheakPass(); cheakpass.Show(); cheakpass.FormClosed += MyClosedHandlerCheakPass2; } else { deleateEl = new Search(); deleateEl.Text = "Deleate Element"; deleateEl.arrDomain = new string[] { "Наименование", "Фирма", "Номер магазина", "ID элемента" }; deleateEl.Show(); deleateEl.FormClosed += MyClosedHandlerDeleteEl; } }
//---------// private void редToolStripMenuItem_Click(object sender, EventArgs e) { if (isPass) { cheakpass = new CheakPass(); cheakpass.Show(); cheakpass.FormClosed += MyClosedHandlerCheakPass; } else { redactionSearch = new Search(); redactionSearch.Text = "Redaction"; redactionSearch.arrDomain = new string[] { "ID элемента" }; redactionSearch.Show(); redactionSearch.FormClosed += MyClosedHandlerRedaction; } }