Beispiel #1
0
 private void cmb_SelectedIndexChanged(object sender, EventArgs e)
 {
     //MessageBox.Show("value", cmb.SelectedValue.ToString());
     if (raOR.Checked == true)
     {
         if (cmb.ValueMember == "ID")
         {
             dataGridView1.DataSource = order.ORDER_TOTAL_CUSTOMER(Convert.ToInt32(cmb.SelectedValue));
         }
         CalculateTotalAmount1();
     }
     else
     {
         if (cmb.ValueMember == "ID")
         {
             dataGridView1.DataSource = order.PURCHASE_TOTAL_SUPPLIER(Convert.ToInt32(cmb.SelectedValue));
         }
         CalculateTotalAmount1();
     }
 }