コード例 #1
0
        private void OnXuatHoaDon()
        {
            dlgHoaDonXetNghiem dlg = new dlgHoaDonXetNghiem();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                DisplayAsThread();
            }
        }
コード例 #2
0
        private void OnDisplayInvoiceInfo()
        {
            if (dgInvoice.SelectedRows == null || dgInvoice.SelectedRows.Count <= 0)
            {
                MsgBox.Show(Application.ProductName, "Vui lòng chọn 1 hóa đơn.", IconType.Information);
                return;
            }

            DataRow            drInvoice = (dgInvoice.SelectedRows[0].DataBoundItem as DataRowView).Row;
            dlgHoaDonXetNghiem dlg       = new dlgHoaDonXetNghiem(drInvoice, true);

            dlg.ShowDialog();
        }