예제 #1
0
        private void OnAddSymptom()
        {
            dlgAddSymptom dlg = new dlgAddSymptom();

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                SearchAsThread();
            }
        }
예제 #2
0
        private void OnEditSymptom()
        {
            if (dgSymptom.SelectedRows == null || dgSymptom.SelectedRows.Count <= 0)
            {
                MsgBox.Show(Application.ProductName, "Vui lòng chọn 1 triệu chứng.", IconType.Information);
                return;
            }

            DataRow drSymp = (dgSymptom.SelectedRows[0].DataBoundItem as DataRowView).Row;

            if (drSymp == null)
            {
                return;
            }
            dlgAddSymptom dlg = new dlgAddSymptom(drSymp, AllowEdit);

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