public Lumb() { StartMine = DateTime.Now; HomeLocation = new Point(2730, 3273); Mov = new Movement(); XmlSerializeHelper <Settings> .Load("Lumber", out Settings, false); if (Settings == null) { Settings = new Settings(); } SettingsLoad(); Core.Window.FormClosing += Window_FormClosing; }
private void Window_FormClosing(object sender, FormClosingEventArgs e) { SetingsSave(); XmlSerializeHelper <Settings> .Save("Lumber", Settings, false); }