Esempio n. 1
0
        private void Event_DeleteSelectedSystem(string selectedSolarSystemName)
        {
            var screen = new ScreenUpdateToServer {
                ActionType = "DeleteSystem", MapKey = Global.Pilots.Selected.SpaceMap.Key
            };

            screen.RefreshMapControl += Event_RefreshMap;
            screen.ShowDialog();

            _commandsLog.InfoFormat("[ScreenUpdateToServer.Event_Activate] " + "After change mapKey");

            containerMap.ForceRefresh(Global.Pilots.Selected.SpaceMap);
            containerInformation.ForceRefresh(Global.Pilots.Selected.SpaceMap);
        }
Esempio n. 2
0
        private void Event_ReloadMap(string key)
        {
            containerMap.StopDrawMap();

            var screen = new ScreenUpdateToServer {
                ActionType = "ReloadMap", MapKey = key
            };

            screen.RefreshMapControl += Event_RefreshMap;
            screen.ShowDialog();

            _commandsLog.InfoFormat("[ScreenUpdateToServer.Event_Activate] " + "After change mapKey");

            containerMap.StartDrawMap();
        }
        public void LoadAllPilotesFromStorage()
        {
            if (InvokeRequired)
            {
                Invoke(new Action(() => LoadAllPilotesFromStorage()));
            }

            var screen = new ScreenUpdateToServer {
                ActionType = "LoadAllPilotesFromStorage", MapKey = ""
            };

            screen.AuthorizeAllPilotsInAccount += AuthorizeAllPilotsInAccount;
            screen.ShowDialog();

            ShowPilots();

            _isLoadedPilotesFromStorage = true;
        }
Esempio n. 4
0
        private void Event_ChangeMapKey(string key)
        {
            containerMap.StopDrawMap();

            var screen = new ScreenUpdateToServer {
                ActionType = "ChangeMapKey", MapKey = key
            };

            screen.RefreshMapControl += Event_RefreshMap;
            screen.ShowDialog();

            _commandsLog.InfoFormat("[ScreenUpdateToServer.Event_Activate] " + "After change mapKey");

            containerMap.ForceRefresh(Global.Pilots.Selected.SpaceMap);
            containerInformation.ForceRefresh(Global.Pilots.Selected.SpaceMap);

            containerMap.StartDrawMap();
        }