public void ProfileFormExit(bool userClose) { if (!userClose) { profileSetup.Close(); } UpdateProfilesList(); this.Visible = true; }
public void ProfileFormExit(bool userClose) { if (!userClose) { profileSetup.Close(); } UpdateProfilesList(); Point NewPoint = new Point(); NewPoint.X = profileSetup.Location.X + profileSetup.Size.Width / 2 - this.Size.Width / 2; NewPoint.Y = profileSetup.Location.Y + profileSetup.Size.Height / 2 - this.Size.Height / 2; this.Location = NewPoint; this.Visible = true; }