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

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

            try
            {
                int r = dgvDonHang1.CurrentCell.RowIndex;
                f1.MaDonHang = Int32.Parse(dgvDonHang1.Rows[r].Cells[0].Value.ToString());
                f1.ShowDialog();
            }
            catch
            {
                MessageBox.Show("Chưa chọn đơn hàng. Vui lòng kiểm tra lại");
            }
            CapNhat();
        }