示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         Mapping.Metdopuslugi metclient = new Mapping.Metdopuslugi();
         metclient.Delete(Program.Pole.id);
         this.Close();
     }
     catch { MessageBox.Show("Error"); }
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         VisibleDopUslugi     vc = new VisibleDopUslugi();
         Mapping.Metdopuslugi d  = new Mapping.Metdopuslugi();
         d.Edit(Program.Pole.id, textBox1.Text.ToString(), Convert.ToInt32(numericUpDown1.Value), comboBox1.Items[comboBox1.SelectedIndex].ToString());
         this.Close();
     }
     catch (ArgumentOutOfRangeException) { MessageBox.Show("Не все поля заполнены"); }
     catch { MessageBox.Show("Error"); }
 }