Esempio n. 1
0
        private void OnAdd()
        {
            dlgAddNhapKhoCapCuu dlg = new dlgAddNhapKhoCapCuu();

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                SearchAsThread();
            }
        }
Esempio n. 2
0
        private void OnEdit()
        {
            if (dgNhapKhoCapCuu.SelectedRows == null || dgNhapKhoCapCuu.SelectedRows.Count <= 0)
            {
                MsgBox.Show(Application.ProductName, "Vui lòng chọn 1 thông tin cấp cứu.", IconType.Information);
                return;
            }

            DataRow drNhapKhoCapCuu = (dgNhapKhoCapCuu.SelectedRows[0].DataBoundItem as DataRowView).Row;

            if (drNhapKhoCapCuu == null)
            {
                return;
            }
            dlgAddNhapKhoCapCuu dlg = new dlgAddNhapKhoCapCuu(drNhapKhoCapCuu, AllowEdit);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                SearchAsThread();
            }
        }