private void button1_Click(object sender, EventArgs e) { this.Hide(); this.Closed += (s, args) => this.Close(); CUser.LogOut(); }