private void Diseases_Control_Load(object sender, EventArgs e) { _diseaseManager.Init(); try { DiseaseDataGrid.DataSource = _diseaseManager.GetDisiases(); } catch (Exception ex) { MessageBox.Show(@"Error: " + ex.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } FitToContent(); cmbBoxSearch.SelectedIndex = 0; }
private void Prescription_Load(object sender, EventArgs e) { try { _diseaseManager.Init(); _medsManager.Init(); } catch (Exception ex) { MessageBox.Show(@"Error: " + ex.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }