private void ll_home_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { this.Dispose(); f_Lab home = new f_Lab(); home.Show(); }
private void button1_Click(object sender, EventArgs e) { labTest form = this; bLab lab = new bLab(); lab.saveTestResults(t_MRN, treportDate, reportGrid); //this.Dispose(); f_Lab home = new f_Lab(); home.Show(); form.Close(); }
private void button1_Click(object sender, EventArgs e) { if (grid.RowCount == 1) { MessageBox.Show("No Lab tests scheduled for the day!!!"); } else { f_Lab home = this; DataGridViewRow row = grid.CurrentRow; string MRN = row.Cells[0].Value.ToString(); string date = row.Cells[2].Value.ToString(); int mrn = Convert.ToInt16(MRN); labTest test = new labTest(mrn, date); test.Show(); home.Dispose(); } }
private void button2_Click(object sender, EventArgs e) { f_Lab home = new f_Lab(); home.Show(); }