private void newToolStripButton_Click(object sender, EventArgs e)
        {
            Item_Create ic = new Item_Create();

            ic.Show();
            ic.Hide();
        }
Beispiel #2
0
 private void button3_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         Item_Create ic = new Item_Create();
         ic.Show();
     }
 }
 private void saveToolStripButton_Click(object sender, EventArgs e)
 {
     if (isvalid())
     {
         con1.Open();
         SqlCommand com1 = new SqlCommand();
         com1.Connection  = con1;
         com1.CommandText = "Insert into Item values ('" + comboBox1.Text.Trim() + "','" + textBox2.Text.Trim() + "','" + textBox3.Text.Trim() + "','" + comboBox2.Text.Trim() + "','" + textBox5.Text.Trim() + "','" + textBox6.Text.Trim() + "','" + textBox7.Text.Trim() + "','" + textBox8.Text.Trim() + "','" + 0 + "','" + 0 + "','" + textBox11.Text.Trim() + "','" + textBox12.Text.Trim() + "','" + dateTimePicker1.Value + "','" + textBox13.Text.Trim() + "')";
         SqlDataAdapter da = new SqlDataAdapter(com1.CommandText, con1.ConnectionString);
         DataTable      dt = new DataTable();
         da.Fill(dt);
         MessageBox.Show("Successfully Saved");
         con1.Close();
         Item_Create ic = new Item_Create();
         this.Hide();
         ic.Show();
     }
 }
Beispiel #4
0
        private void button3_Click(object sender, EventArgs e)
        {
            Item_Create ic = new Item_Create();

            ic.Show();
        }
Beispiel #5
0
        private void pictureBox3_Click_1(object sender, EventArgs e)
        {
            Item_Create ic = new Item_Create();

            ic.Show();
        }
Beispiel #6
0
        private void itemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Item_Create ic = new Item_Create();

            ic.Show();
        }