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

            f.ShowDialog();
            LoadData();
        }
        private void btnNhapHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmNhapHang f = new FrmNhapHang();

            try
            {
                int r = dgvDSMH.CurrentCell.RowIndex;
                f.MaHang = dgvDSMH.Rows[r].Cells[0].Value.ToString();
                f.ShowDialog();
                LoadData();
            }
            catch
            {
                MessageBox.Show("Chưa chọn mặt hàng!!!");
            }
            LoadData();
        }