Пример #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Sklad at = new Sklad();

            at.Show();
            this.Hide();
        }
Пример #2
0
        private void Button2_Click_1(object sender, EventArgs e)
        {
            Sklad sk = new Sklad();

            sk.Show();
            this.Hide();
        }
Пример #3
0
        private void PictureBox3_Click(object sender, EventArgs e)
        {
            Sklad sk = new Sklad();

            sk.Show();
            this.Hide();
        }
Пример #4
0
        private void Button1_Click(object sender, EventArgs e)
        {
            BD            databae    = new BD();
            SqlConnection sqlConnect = databae.DatabaseSQL();

            using (sqlConnect)
            {
                try
                {
                    sqlConnect.Open();
                    SqlCommand sqlCommand = new SqlCommand("Zakaz_Prod_Update", sqlConnect)
                    {
                        CommandType = CommandType.StoredProcedure
                    };
                    sqlCommand.Parameters.AddWithValue("@Nazv_Prod", textBox1.Text);
                    sqlCommand.Parameters.AddWithValue("@Kolvo_neob_prod", textBox2.Text);
                    sqlCommand.Parameters.AddWithValue("@Client_Id", Convert.ToInt32(textBox2.Text));
                    sqlCommand.Parameters.AddWithValue("@SotrD_id", Convert.ToInt32(textBox3.Text));
                    sqlCommand.ExecuteNonQuery();
                    MessageBox.Show("Заказ Изменен!");
                }
                catch
                {
                    MessageBox.Show("Какие либо данные введены не корректно!");
                }
            }
            Sklad sk = new Sklad();

            sk.Show();
            this.Hide();
        }