private void button1_Click(object sender, EventArgs e)
        {
            dept d = new dept();

            d.Show();
            this.Hide();
        }
        private void garments_view_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'store1DataSet5.food1' table. You can move, or remove it, as needed.
            this.food1TableAdapter.Fill(this.store1DataSet5.food1);
            // TODO: This line of code loads data into the 'store1DataSet2.homeappliances' table. You can move, or remove it, as needed.

            // TODO: This line of code loads data into the 'store1DataSet1.food' table. You can move, or remove it, as needed.

            // TODO: This line of code loads data into the 'store1DataSet.garments' table. You can move, or remove it, as needed.
            dept d = new dept();

            /*MessageBox.Show(Convert.ToString(gar));*/
            if (gar == 1)
            {
                dataGridView1.DataSource = garmentsBindingSource;
                this.garmentsTableAdapter.Fill(this.store1DataSet.garments);
            }
            else if (gar == 2)
            {
                dataGridView1.DataSource = bindingSource1;
                this.foodTableAdapter.Fill(this.store1DataSet1.food);
            }
            else if (gar == 3)
            {
                dataGridView1.DataSource = bindingSource2;
                this.homeappliancesTableAdapter.Fill(this.store1DataSet2.homeappliances);
            }
            else if (gar == 4)
            {
                dataGridView1.DataSource = bindingSource3;
                this.food1TableAdapter.Fill(this.store1DataSet5.food1);
            }
        }
Beispiel #3
0
        private void button11_Click(object sender, EventArgs e)
        {
            dept d = new dept();
            HomeAppliances_update g = new HomeAppliances_update();

            g.Show();
            this.Hide();
        }
Beispiel #4
0
        private void button7_Click(object sender, EventArgs e)
        {
            dept        d = new dept();
            Food_update g = new Food_update();

            g.Show();
            this.Hide();
        }
Beispiel #5
0
        private void button3_Click(object sender, EventArgs e)
        {
            dept            d = new dept();
            Garments_update g = new Garments_update();

            g.Show();
            this.Hide();
        }
 private void bk_Click(object sender, EventArgs e)
 {
     if (gar == 2)
     {
         dept d = new dept();
         d.Show();
         this.Hide();
     }
     else if (gar == 4)
     {
         select d = new select();
         d.Show();
         this.Hide();
     }
 }