示例#1
0
 private void button6_Click(object sender, EventArgs e)
 {
     if (label2.Text == "~code~")
     {
         insert();
         utility a = new utility();
         a.ClearTextBoxes(this.Controls);
     }
     else
     {
         update();
         this.Close();
     }
 }
示例#2
0
        private void button6_Click(object sender, EventArgs e)
        {
            utility a = new utility();

            if (label2.Text == "~code~")
            {
                insert();
                insertToContact();
                a.ClearTextBoxes(this.Controls);
                comboBox1.SelectedIndex = -1;
                comboBox2.SelectedIndex = -1;
            }
            else
            {
                update();
                a.ClearTextBoxes(this.Controls);
                comboBox1.SelectedIndex = -1;
                comboBox2.SelectedIndex = -1;
            }
        }