private void button1_Click(object sender, EventArgs e) { try { VisibleSpisokVeshei vc = new VisibleSpisokVeshei(); Mapping.Metveshi d = new Mapping.Metveshi(); d.Edit(Program.Pole.id, textBox1.Text.ToString()); this.Close(); } catch (ArgumentOutOfRangeException) { MessageBox.Show("Не все поля заполнены"); } catch { MessageBox.Show("Error"); } }
private void toolStripMenuVeshi_Click(object sender, EventArgs e) { vnesenieinfBD.veshi.SpisokVeshi.VisibleSpisokVeshei visibleclient = new vnesenieinfBD.veshi.SpisokVeshi.VisibleSpisokVeshei(); visibleclient.ShowDialog(); }