Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- if (textBox1.Text != String.Empty && textBox2.Text != String.Empty && textBox3.Text != String.Empty && textBox4.Text != String.Empty && maskedTextBox1.Text != String.Empty)
- {
- tablTableAdapter = tablTableAdapter.Insert(Convert.ToInt32(numericUpDown1.Value), textBox1.Text);
- tablTableAdapter = tablTableAdapter.Insert(Convert.ToInt32(numericUpDown2.Value), textBox2.Text);
- tablTableAdapter = tablTableAdapter.Insert(Convert.ToInt32(numericUpDown3.Value), textBox3.Text);
- tablTableAdapter = tablTableAdapter.Insert(Convert.ToInt32(numericUpDown4.Value), textBox4.Text);
- tablTableAdapter = tablTableAdapter.Insert(Convert.ToInt32(numericUpDown5.Value), textBox5.Text);
- tablTableAdapter = tablTableAdapter.Insert(Convert.ToInt32(numericUpDown6.Value), textBox6.Text);
- MessageBox.Show("Добавлено!");
- Close();
- }
- else
- MessageBox.Show("Не все поля были заполнены!");
- }
Add Comment
Please, Sign In to add comment