private void OnAddSymptom() { dlgAddSymptom dlg = new dlgAddSymptom(); if (dlg.ShowDialog(this) == DialogResult.OK) { SearchAsThread(); } }
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(); } }