示例#1
0
        private void btnDSTQ_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmTangQua1 f = new FrmTangQua1();

            f.ShowDialog();
            LoadData();
        }
示例#2
0
 private void btnTangQua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (cbTangQua.Checked == true)
     {
         FrmTangQua1 f = new FrmTangQua1();
         try
         {
             f.MaDonHang = Int32.Parse(cbMaDon.SelectedValue.ToString());
             f.MaHang    = cbMaHang.SelectedValue.ToString();
             f.SoLuong   = Int32.Parse(txtSoLuong.Text.ToString());
             f.ShowDialog();
         }
         catch (Exception err) { MessageBox.Show(err.Message + "asdsadsad"); }
     }
     else
     {
         MessageBox.Show("Chua chọn mục tặng quà");
     }
     LoadData();
 }