Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            OrderDetails1 d = new OrderDetails1();

            d.Show();
        }
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            //products column
            if (e.ColumnIndex == senderGrid.Columns["Products"].Index && e.RowIndex == 0)
            {
                this.Hide();
                OrderDetails1 d = new OrderDetails1();
                d.Show();
            }
            else if (e.ColumnIndex == senderGrid.Columns["Products"].Index && e.RowIndex == 1)
            {
                this.Hide();
                OrderDetails5 d = new OrderDetails5();
                d.Show();
            }
            else if (e.ColumnIndex == senderGrid.Columns["Products"].Index && e.RowIndex == 2)
            {
                this.Hide();
                OrderDetails6 d = new OrderDetails6();
                d.Show();
            }
        }