예제 #1
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"); }
 }
예제 #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 toolStripMenuClient_Click(object sender, EventArgs e)
 {
     vnesenieinfBD.clients.VisibleClient visibleclient = new vnesenieinfBD.clients.VisibleClient();
     visibleclient.ShowDialog();
 }