private void toolStripButtonAdd_Click(object sender, EventArgs e) { Class_Abonent A = new Class_Abonent(); Form_EditAbonent _f = new Form_EditAbonent(A); _f.ShowDialog(); Load_Data(); }
private void toolStripBupdate_Click(object sender, EventArgs e) { Class_Abonent A = (Class_Abonent)BSAbonent.Current; Form_EditAbonent _f = new Form_EditAbonent(A); if (A != null) { _f.ShowDialog(); Load_Data(); } else { MessageBox.Show("Выберите абонента"); } }