private void triggerToolStripMenuItem_Click(object sender, EventArgs e) { if (Usermanager.Connection.CurrentUser.Database != null) { var form = new NewTrigger(tool, Usermanager); form.Show(); } else { MessageBox.Show("You must Login to a Database", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void trigerToolStripMenuItem_Click(object sender, EventArgs e) { NewTrigger viewTrigger = new NewTrigger(this); viewTrigger.Show(); }