static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     var loginForm = new Login();
     loginForm.FormClosed += new FormClosedEventHandler(FormClosed);
     loginForm.Show();
     Application.Run();
 }
 //logout in menustrip
 private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _opsController.voidLoggedinUserName();
     var loginForm = new Login();
     loginForm.Show();
     this.Close();
 }