private void button2_Click(object sender, EventArgs e) { var map2 = new FormMap(_discoveryForm.SystemNames); map2.visitedSystems = visitedSystems; map2.Show(); }
private void tsbtnMapView_Click(object sender, EventArgs e) { //FormMap fm = (FormMap)Application.OpenForms[MapViewer.Text]; try { if (MapViewer == null) { MapViewer = new FormMap(); } else if (MapViewer.Visible) { MapViewer.Activate(); } else { MapViewer = new FormMap(); } } catch { MapViewer = new FormMap(); } MapViewer.Tag = lastMapProvider; MapViewer.Show(); }
ushort zoom = 1; //镜头放大倍率 #endregion Fields #region Constructors public GeoDevice(FormMap parent, string area, string device, Point location) { this.parent = parent; this.parent.Paint += new PaintEventHandler(parent_Paint); this.area = area; this.device = device; this.location = location; }
private void tsbtnMapView_Click(object sender, EventArgs e) { //FormMap fm = (FormMap)Application.OpenForms[MapViewer.Text]; if (tsbtnMapView.DropDownButtonPressed) { return; } if (MapViewer != null) { lastMapProvider = MapViewer.lastMapProvider; lastLat = MapViewer.lastLat; lastLon = MapViewer.lastLon; mapX = MapViewer.Left; mapY = MapViewer.Top; mapW = MapViewer.Width; mapH = MapViewer.Height; } try { if (MapViewer == null) { MapViewer = new FormMap(); } else if (MapViewer.Visible) { MapViewer.Activate(); } else { MapViewer = new FormMap(); } } catch { MapViewer = new FormMap(); } MapViewer.lastMapProvider = lastMapProvider; MapViewer.lastLat = lastLat; MapViewer.lastLon = lastLon; MapViewer.Tag = lastMapProvider; MapViewer.proxyOn = proxyOn; MapViewer.proxyHost = proxyHost; MapViewer.proxyUser = proxyUser; MapViewer.proxyPass = proxyPass; MapViewer.Show(); MapViewer.Left = mapX; MapViewer.Top = mapY; MapViewer.Width = mapW; MapViewer.Height = mapH; if (explorerBrowser.SelectedItems.Count > 0) { ShowSelectedImage(true); } }
public StarNamesList(StarGrids sg, FormMap _fm, GLControl gl) { _stargrids = sg; _formmap = _fm; _glControl = gl; _starnamesbackground = new Dictionary <Vector3, StarNames>(); _starnamestoforeground = new List <StarNames>(); _starnamesforeground = new LinkedList <StarNames>(); }
public MapManager(bool nowindowreposition, EDDiscoveryForm frm) { _formMap = new FormMap() { discoveryForm = frm, noWindowReposition = nowindowreposition, TopMost = frm.TopMost }; frm.TopMostChanged += (s, e) => _formMap.TopMost = ((EDDiscoveryForm)s).TopMost; }
public MapManager(EDDiscoveryForm frm) { if (!EDDOptions.Instance.No3DMap) { _formMap = new FormMap() { discoveryForm = frm, TopMost = frm.TopMost }; frm.TopMostChanged += (s, e) => _formMap.TopMost = ((EDDiscoveryForm)s).TopMost; } }
public IActionResult MapView(FormMap map) { string Name = ""; switch (map.Level) { case 1: { Name = "Local_point"; break; } case 2: { Name = "Region"; break; } case 3: { Name = "Administrative_unit"; break; } case 4: { Name = "Country"; break; } default: { Name = "Local_point,Region,Administrative_unit,Country"; break; } } string[] ex = { }; if (map.Exeptions != null) { ex = map.Exeptions.Split(";"); } List <InfoMaps> ob = repo.GetInformation(Name, map.Year.ToString(), ex); return(Json(JsonSerializer.Serialize(ob))); }
private void toolStripButtonMap_Click(object sender, EventArgs e) { var centerSystem = TargetSystem; if (centerSystem == null || !centerSystem.HasCoordinate) { centerSystem = LastKnownSystem; } var map2 = new FormMap(centerSystem, _discoveryForm.SystemNames) { ReferenceSystems = CurrentReferenceSystems.ToList(), visitedSystems = _discoveryForm.visitedSystems }; map2.Show(); }
private void MainForm_Load(object sender, EventArgs e) { BufferedGraphicsContext currentContext; BufferedGraphics myBuffer; SoundPlayer mainSound = new SoundPlayer(Resources.go_goom); // mainSound.PlaySync(); currentContext = BufferedGraphicsManager.Current; myBuffer = currentContext.Allocate(this.CreateGraphics(), this.DisplayRectangle); var mapManager = new MapManager(ConfigurationManager.AppSettings["pathToMapDirectory"], ConfigurationManager.AppSettings["pathToMapFile"]); var map = new FormMap(int.Parse(ConfigurationManager.AppSettings["widthField"]), int.Parse(ConfigurationManager.AppSettings["heightField"]), int.Parse(ConfigurationManager.AppSettings["timeToBoom"])); var Bomber = new BomberSoz.Model.Bomber(int.Parse(ConfigurationManager.AppSettings["liveCount"]), map.FirstPositionBomber); this.Size = new System.Drawing.Size((map.Width + 1) * ImagePath.IMAGE_SIZE + 20, (map.Height + 1) * ImagePath.IMAGE_SIZE + 150); map.Load(mapManager.GetFirstMap()); map.SetUpgradeOnMap(1, 1, 1); this.DoubleBuffered = true; displayForm = new FormDisplay(map, this, this.CreateGraphics(), myBuffer, Bomber, mainSound); gamepadForm = new FormGamePad(); mC = new MotionController(displayForm, gamepadForm, map, Bomber, mapManager); mC.SetPositionForPerson(2, 1); mC.SetPositionForPerson(3, 2); mC.SetPositionForPerson(4, 1); System.Diagnostics.Stopwatch sw = new Stopwatch(); sw.Start(); sw.Stop(); Logging.WriteTrace("Первая отрисовка" + (sw.ElapsedMilliseconds / 100.0).ToString()); Task.Run(() => mC.Start()); }
public MapManager() { _formMap = new FormMap(); }
public MapRecorder(FormMap form) { owner = form; }
public MapManager(bool nowindowreposition, TravelHistoryControl tc) { _formMap = new FormMap(); _formMap.travelHistoryControl = tc; _formMap.noWindowReposition = nowindowreposition; }
public MapManager(bool nowindowreposition,TravelHistoryControl tc) { _formMap = new FormMap(); _formMap.travelHistoryControl = tc; _formMap.noWindowReposition = nowindowreposition; }
public MapManager(bool nowindowreposition, EDDiscoveryForm frm) { _formMap = new FormMap(); _formMap.discoveryForm = frm; _formMap.noWindowReposition = nowindowreposition; }
public MapManager(bool nowindowreposition,EDDiscoveryForm frm) { _formMap = new FormMap(); _formMap.discoveryForm = frm; _formMap.noWindowReposition = nowindowreposition; }
public MapManager() { _formMap = new FormMap(); }