private void toolStripButtonAdd_Click(object sender, EventArgs e) { Class_Disrepair D = new Class_Disrepair(); Form_EditDisrepair _f = new Form_EditDisrepair(D); _f.ShowDialog(); Load_Data(); }
private void toolStripBupdate_Click(object sender, EventArgs e) { Class_Disrepair D = (Class_Disrepair)BSDisrepair.Current; Form_EditDisrepair _f = new Form_EditDisrepair(D); if (D != null) { _f.ShowDialog(); Load_Data(); } else { MessageBox.Show("Выберите неисправность"); } }