private void Init() { InitDockLayout(); PluginHelper.Init(this); ToolStripManager.LoadSettings(this); TilesHelper.Init(mnuTiles); InitLegend(); this.InitMenus(); RefreshUI(); var gs = new GlobalSettings(); gs.ApplicationCallback = _callback; Shown += (s, e) => Map.Focus(); FormClosing += MainForm_FormClosing; App.Project.ProjectChanged += (s, e) => RefreshUI(); App.Project.Load(AppSettings.Instance.LastProject); }