private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { Groups_Needed_Serial_Hierarchy_Form showForm = new Groups_Needed_Serial_Hierarchy_Form(); Hide(); showForm.ShowDialog(); Show(); } catch { MessageBox.Show("A direct connection to the database is required for this report.", "No Database Connection", MessageBoxButtons.OK, MessageBoxIcon.Error); linkLabel4.Enabled = false; } }
private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { Groups_Needed_Serial_Hierarchy_Form showForm = new Groups_Needed_Serial_Hierarchy_Form(); Hide(); showForm.ShowDialog(); Show(); } catch { MessageBox.Show("A direct connection to the database is required for this report.", "No Database Connection", MessageBoxButtons.OK, MessageBoxIcon.Error); linkLabel4.Enabled = false; } }