Exemplo 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);
        }
Exemplo 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();
        }
Exemplo n.º 3
0
        public void LoadAllPilotesFromStorage()
        {
            if (InvokeRequired)
            {
                Invoke(new Action(() => LoadAllPilotesFromStorage()));
            }

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

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

            ShowPilots();

            _isLoadedPilotesFromStorage = true;
        }
Exemplo 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();
        }