private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { if (comboBox1.SelectedValue != null) { Pay_Rev_Type_Table Obj = BussinessObj.Pay_Rev_Type_SelectById(int.Parse(comboBox1.SelectedValue.ToString())); comboBoxEdit5.SelectedItem = Obj.Flag; PaytYName.Text = Obj.Pay_Rev_Type_Name; PayTypDes.Text = Obj.Pay_Rev_Type_Description; } }
private void simpleButton1_Click(object sender, EventArgs e) { if (comboBox1.SelectedValue != null) { bool x = false; x = BussinessObj.Pay_Rev_Type_Table_updateBarcodeBytID(int.Parse(comboBox1.SelectedValue.ToString()), PaytYName.Text, PayTypDes.Text, comboBoxEdit5.SelectedItem.ToString()); Pay_Rev_Type_Table Obj = BussinessObj.Pay_Rev_Type_SelectById(int.Parse(comboBox1.SelectedValue.ToString())); if (x == true) { XtraMessageBox.Show("تم تحديث البيانات "); } else { XtraMessageBox.Show("توجد مشكلة فى تحديث البيانات "); ValidationClass.showStar(RTSName, x); } } }
private void simpleButton2_Click(object sender, EventArgs e) { if (comboBox1.SelectedValue != null) { bool x = BussinessObj.Pay_Rev_Types_Delete(int.Parse(comboBox1.SelectedValue.ToString())); Pay_Rev_Type_Table Obj = BussinessObj.Pay_Rev_Type_SelectById(int.Parse(comboBox1.SelectedValue.ToString())); if (x == true) { XtraMessageBox.Show("تم حذف البيانات "); PaytYName.Text = ""; PayTypDes.Text = ""; } else { XtraMessageBox.Show("توجد مشكلة فى حذف البيانات "); ValidationClass.showStar(RTSName, x); } } }