private void btnDispense_Click(object sender, EventArgs e) { try { frmDispense dispense = new frmDispense(); dispense.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "New Drug / Item"); } }
// load the dispense module private void stockRecordToolStripMenuItem_Click(object sender, EventArgs e) { try { frmDispense dispense = new frmDispense(); dispense.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "New Drug / Item"); } }