Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         Mapping.Metclient metclient = new Mapping.Metclient();
         metclient.Delete(Program.Pole.id);
         this.Close();
     }
     catch { MessageBox.Show("Error"); }
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         VisibleClient     vc = new VisibleClient();
         Mapping.Metclient d  = new Mapping.Metclient();
         d.Edit(Program.Pole.id, textBox1.Text.ToString(), textBox2.Text.ToString());
         this.Close();
     }
     catch (ArgumentOutOfRangeException) { MessageBox.Show("Не все поля заполнены"); }
     catch { MessageBox.Show("Error"); }
 }
Пример #3
0
 private void buttonOK_Click(object sender, EventArgs e)
 {
     try
     {
         VisibleClient     vc = new VisibleClient();
         Mapping.Metclient d  = new Mapping.Metclient();
         d.ADD(textBoxFIO.Text.ToString(), textBoxEmail.Text.ToString());
         this.Close();
     }
     catch (ArgumentOutOfRangeException) { MessageBox.Show("Не все поля заполнены"); }
     catch { MessageBox.Show("Error"); }
 }