public SensorForm(MainForm mainForm) { _mf = mainForm; dispMutex = new Mutex(); InitializeComponent(); waveBoxV.Initialize(10,10,-10); _lineName.Add((int)DataType.Heading, "艏向角"); _lineName.Add((int)DataType.Pitch, "纵倾"); _lineName.Add((int)DataType.Roll, "横摇"); _lineName.Add((int)DataType.Pressure, "压强"); _lineName.Add((int)DataType.Temperature, "温度"); _lineName.Add((int)DataType.Speed, "航速"); _lineName.Add((int)DataType.Depth, "拖体深度"); _lineName.Add((int)DataType.Altitude, "底深"); MonoColors.Add(Color.Aqua); MonoColors.Add(Color.Blue); MonoColors.Add(Color.BlueViolet); MonoColors.Add(Color.Brown); MonoColors.Add(Color.BurlyWood); MonoColors.Add(Color.CadetBlue); MonoColors.Add(Color.Chartreuse); MonoColors.Add(Color.Chocolate); MonoColors.Add(Color.CornflowerBlue); MonoColors.Add(Color.Crimson); MonoColors.Add(Color.DeepPink); waveBoxV.AddLine(_lineName[(int)DataType.Heading], MonoColors[0]); waveBoxV.AddLine(_lineName[(int)DataType.Pitch], MonoColors[1]); waveBoxV.AddLine(_lineName[(int)DataType.Roll], MonoColors[2]); option.bShowHeading = true; option.bShowPitch = true; option.bShowRoll = true; }
private double R = 6378137; // WGS-84; public NavigationView(MainForm mainForm) { mf = mainForm; InitializeComponent(); mainOverlay = new GMapOverlay(MainMap, "map"); MainMap.Overlays.Add(mainOverlay); //routes = new GMapOverlay(MainMap, "routes"); //MainMap.Overlays.Add(routes); Net = new GMapOverlay(MainMap, "net"); MainMap.Overlays.Add(Net); track = new GMapOverlay(MainMap, "polygons"); MainMap.Overlays.Add(track); objects = new GMapOverlay(MainMap, "objects"); MainMap.Overlays.Add(objects); rulers = new GMapOverlay(MainMap, "rulers"); MainMap.Overlays.Add(rulers); DistanceInfo = new GMapOverlay(MainMap, "DistanceInfo"); MainMap.Overlays.Add(DistanceInfo); infolayers = new GMapOverlay(MainMap, "Info"); MainMap.Overlays.Add(infolayers); WebNodeLayer = new GMapOverlay(MainMap, "webnode"); MainMap.Overlays.Add(WebNodeLayer); g = MainMap.CreateGraphics(); }
public ChartForm(MainForm mf) { _mf = mf; InitializeComponent(); }
private void MainForm_Load(object sender, EventArgs e) { mf = this; bShowRaw = true; PlaybackTime.Enabled = false; DataSaveBox.BackColor = Color.Red; ShowInfoRegion.Checked = bShowInfo; splitViewer.SplitterDistance = splitViewer.Width; NoneBssView(); NoneNaviAndSensor(); StatusLabel.Text = "就绪"; StatusLabel.ForeColor = Color.White; LongLabel.ForeColor = Color.White; LatLabel.ForeColor = Color.White; InitConfigure(); CmdWindow.Visible = false; if (netcore.Initialed) { netcore.Start(); } OpenBssView.PerformClick(); //OpenBssView.PerformClick(); if (BssView1!=null) { BssView1.option.Fq = Frequence.High; } if (BssView2!=null) { BssView2.option.Fq = Frequence.Low; } SetWorkingState(); DataSaveBox.PerformClick(); }