private void button1_Click(object sender, EventArgs e) { this.Hide(); var login = new startup(); login.Closed += (s, args) => this.Close(); login.Show(); }
internal static void logout(Form close) { valid = false; UserID = ""; dp = ""; pos = ""; close.Hide(); var home = new startup(); home.Closed += (s, args) => close.Close(); home.Show(); }