private void ContainerEvent_ChangeSelectedPilot() { if (InvokeRequired) { Invoke(new Action(() => ContainerEvent_ChangeSelectedPilot())); } try { Log.DebugFormat("[WindowMonitoring.Event_ChangeSelectedPilot] Global.Pilots.Selected.Location.Id {0}", Global.Pilots.Selected.Location.Id); if (Global.Pilots.Selected.Location.Id != null) { RefreshSolarSystemInformation(Global.Pilots.Selected.Location); if (Global.Pilots.Selected.Key == "") { Global.Pilots.Selected.Key = Global.Pilots.Selected.Name; //Global.Pilots.Selected.SpaceMap = Global.Pilots.Selected.Name; } _containerMap = new MapControl(); _containerMap.ActivateContainer(); //ContainerTabs.AddTab("Map", TabSize.Map, cmdMap, _containerMap); } else { } } catch (Exception ex) { Log.ErrorFormat("[WindowMonitoring.Event_ChangeSelectedPilot] Critical error. Exception {0}", ex); } Log.DebugFormat("[WindowMonitoring.Event_ChangeSelectedPilot] end"); }