static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); NwLogin login = new NwLogin(); login.Show(); Application.Run(); }
/// <summary> /// hides the home form and reopens the login form. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void logOutToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); _loginScreen = new NwLogin(); _loginScreen.Show(); }