private void logout_btn_Click(object sender, EventArgs e) { StoreInfo.sharedStoreInfo().Global_LoginStatus = false; MessageBox.Show("Log out successfully!!"); this.Hide(); Login_Form lg = new Login_Form(); lg.ShowDialog(); this.Close(); }