private void LoginForm_Load(object sender, EventArgs e) { LoginDataAccess db = new LoginDataAccess(); db.CheckCurrentUser(); if (LoginDataAccess.isCurrentUserLogged == true) { db.DeleteOldUser(); } else { labelHiddenUser.Text = "0"; } }