private void vIewToolStripMenuItem_Click(object sender, EventArgs e) { if (Usermanager.Connection.CurrentUser.Database != null) { var form = new NewView(tool, Usermanager); form.Show(); } else { MessageBox.Show("You must Login to a Database", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public static void OpenWindow() { NewView view = new NewView(); view.Show(); }