private void FORM_Closing(object sender, FormClosingEventArgs e) { if (sim != null) sim.Close(); Form1.APP_SETT_SIZE_X = this.Size.Width; Form1.APP_SETT_SIZE_Y = this.Size.Height; }