Exemplo n.º 1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            Hide();
            Form5Post form9 = new Form5Post();

            form9.ShowDialog();
        }
Exemplo n.º 2
0
        private void button6_Click(object sender, EventArgs e)
        {
            Hide();
            Form5Post form241 = new Form5Post();

            form241.ShowDialog();
        }
Exemplo n.º 3
0
        private void button5_Click(object sender, EventArgs e)
        {
            using (MySqlConnection mysqlCon = new MySqlConnection(connectionString))
            {
                mysqlCon.Open();
                MySqlCommand mySqlCmd = new MySqlCommand("postavkiAddOrEdit", mysqlCon);
                mySqlCmd.CommandType = CommandType.StoredProcedure;
                mySqlCmd.Parameters.AddWithValue("__id_zakaza", _id_zakaza);
                mySqlCmd.Parameters.AddWithValue("__id_postav", textBox6.Text.Trim());
                mySqlCmd.Parameters.AddWithValue("__id_tovara", textBox7.Text.Trim());
                mySqlCmd.Parameters.AddWithValue("_kol_tovara", textBox5.Text.Trim());
                mySqlCmd.Parameters.AddWithValue("_data", dateTimePicker1.Value);
                mySqlCmd.ExecuteNonQuery();
                MessageBox.Show("Запись добавлена");
                dataGridView1.Refresh();
                Clear();
                GridFill3();
            }
            Hide();
            Form5Post form9 = new Form5Post();

            form9.ShowDialog();
        }