//display new order form once click private void OderListGridView_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { int bid = int.Parse(this.OderListGridView.CurrentRow.Cells[0].Value.ToString()); NewOrderForm bkf = new NewOrderForm(bid); bkf.ShowDialog(); }
// open new order form private void ButtonNewOder_Click(object sender, EventArgs e) { NewOrderForm nof = new NewOrderForm(); nof.Show(); }