private void RefreshDatabase() { try { _medsManager.Update(); _medsManager.Init(); MedsDataGrid.DataSource = _medsManager.GetMeds(); } catch (Exception ex) { MessageBox.Show(@"Error: " + ex.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
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); } }