private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         int productId = Convert.ToInt16(dataGridView1.SelectedRows[0].Cells[0].Value);
         int price = Convert.ToInt16(dataGridView1.SelectedRows[0].Cells[7].Value);
        //MessageBox.Show("productId" + productId);
        ConfirmOrder confirmOrder = new ConfirmOrder(ident, productId, "product",price.ToString());
        confirmOrder.Show();
     }
 }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     //   MessageBox.Show("Proceed_btnClick");
        //  MessageBox.Show("dataGridView1_RowheaderDoubleClick");
      if (dataGridView1.SelectedRows.Count > 0)
      {
          int promoid = Convert.ToInt16(dataGridView1.SelectedRows[0].Cells[4].Value);
          ConfirmOrder confirmOrder = new ConfirmOrder(ident,promoid,"bundle",listPrice[1]);
          confirmOrder.Show();
      }
 }