Example #1
0
        private void OnAdd()
        {
            dlgAddTiemNgua dlg = new dlgAddTiemNgua();

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                DisplayAsThread();
            }
        }
Example #2
0
        private void OnEdit()
        {
            if (dgTiemNgua.SelectedRows == null || dgTiemNgua.SelectedRows.Count <= 0)
            {
                MsgBox.Show(Application.ProductName, "Vui lòng chọn 1 tiêm ngừa.", IconType.Information);
                return;
            }

            DataRow        drTiemNgua = (dgTiemNgua.SelectedRows[0].DataBoundItem as DataRowView).Row;
            dlgAddTiemNgua dlg        = new dlgAddTiemNgua(drTiemNgua);

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