コード例 #1
0
 private void button12_Click(object sender, EventArgs e)
 {
     try
     {
         if (MessageBox.Show("Удалить запись?", "Удалить", MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
         {
             SQLclassUpdateR.DeleteReg(_idRegistration);
             SQLclassUpdateR.Registration(this.dataGridView4);
         }
     }
     catch
     {
         MessageBox.Show("Упс", "Удалить", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #2
0
 private void button11_Click(object sender, EventArgs e)
 {
     try
     {
         if (textBox7.Text == textBox10.Text)
         {
             SQLclassUpdateR.UpdaterReg(textBox8.Text, textBox7.Text, _idRegistration);
             SQLclassUpdateR.Registration(this.dataGridView4);
         }
     }
     catch
     {
         MessageBox.Show("Error", "Error");
     }
 }
コード例 #3
0
        private void SettingsForms_Load(object sender, EventArgs e)
        {
            SQLConnectionDelete.RefreshTown(this.dataGridView2);
            SQLConnectionDelete.RefreshRegion(this.dataGridView1);

            comboBox1.DataSource = SQLConnectionDelete.ComboRegion();
            comboBox2.DataSource = SQLConnectionDelete.ComboTown();


            comboBox3.DataSource = SQLConnectionDelete.ComboRegion();
            comboBox4.DataSource = SQLConnectionDelete.ComboTown();

            SQLConnectionDelete.SelectTownRegion(this.dataGridView3);

            SQLclassUpdateR.Registration(this.dataGridView4);
        }
コード例 #4
0
 private void button10_Click(object sender, EventArgs e)
 {
     try
     {
         if (textBox9.Text == textBox4.Text)
         {
             SQLclassUpdateR.InsertReg(textBox3.Text, textBox9.Text);
             SQLclassUpdateR.Registration(this.dataGridView4);
         }
     }
     catch
     {
         MessageBox.Show("Error", "Error");
     }
     finally
     {
         textBox9.Text = null;
         textBox4.Text = null;
         textBox3.Text = null;
     }
 }
コード例 #5
0
ファイル: FormF.cs プロジェクト: kembek/my-firsts-projects
 private void button2_Click(object sender, EventArgs e)
 {
     SQLclassUpdateR.RefreshOR(this.dataGridView1);
 }