private void werteSetzenToolStripMenuItem_Click(object sender, EventArgs e) { Pad mypad = new Pad(new GroundControlUI.ControlPanel(core), "Value Control Panel", WeifenLuo.WinFormsUI.Docking.DockState.Document); mypad.Show(this.dockPanel1); }
private void chartToolStripMenuItem_Click(object sender, EventArgs e) { Pad mypad = new Pad(new GroundControlUI.PropertygraphControl(core), "Graph", WeifenLuo.WinFormsUI.Docking.DockState.DockBottom); mypad.Show(this.dockPanel1); }
private void missionPlanerToolStripMenuItem_Click(object sender, EventArgs e) { Pad mypad = new Pad(new GroundControlUI.MapView(core), "Map Designer", WeifenLuo.WinFormsUI.Docking.DockState.Document); mypad.Show(this.dockPanel1); }
private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { Pad mypad = new Pad(new GroundControlUI.PropertyWindow(core), "UAV Properties", WeifenLuo.WinFormsUI.Docking.DockState.DockRight); mypad.Show(this.dockPanel1); }
private void groundLogToolStripMenuItem_Click(object sender, EventArgs e) { var logviewer = new GroundControlUI.LogViewer(core, "GroundLog"); logviewer.ShowConnectionsStateChanges = true; Pad mypad = new Pad(logviewer, "GroundLog", WeifenLuo.WinFormsUI.Docking.DockState.DockBottom); mypad.Show(this.dockPanel1); }
private void kommunikationToolStripMenuItem_Click(object sender, EventArgs e) { Pad mypad = new Pad(new GroundControlUI.ConnectionsPanel(core), "Verbindungen", WeifenLuo.WinFormsUI.Docking.DockState.DockRight); mypad.Show(this.dockPanel1); }
private void eFISToolStripMenuItem_Click(object sender, EventArgs e) { EFISViewer ucontrol = new EFISViewer(core); Pad threedPad = new Pad(ucontrol, "EFIS", DockState.Document); threedPad.Show(); threedPad.TopMost = true; }
private IDockContent GetContentFromPersistString(string persistString) { // DummyDoc overrides GetPersistString to add extra information into persistString. // Any DockContent may override this value to add any needed information for deserialization. try { string[] parsedStrings = persistString.Split(new char[] { ';' }); Assembly assm = Assembly.Load(parsedStrings[0].Split(',')[0]); Type t = assm.GetType(parsedStrings[1], true); BindingFlags flags = BindingFlags.Default; Pad newpad = new Pad((UserControl)Activator.CreateInstance(parsedStrings[0].Split(',')[0], parsedStrings[1], true, flags, null, new object[] { this.core }, null, null).Unwrap(), parsedStrings[2], DockState.Float); ((GroundControlUI.PersistentData)newpad.basecontrol).PersistentData = parsedStrings[3]; return newpad; } catch (Exception ex) { } return null; }
private void instrumentPanelToolStripMenuItem_Click(object sender, EventArgs e) { Pad mypad = new Pad(new GroundControlUI.InstrumentPanel(core), "Instrument Panel", WeifenLuo.WinFormsUI.Docking.DockState.Document); mypad.Show(this.dockPanel1); }
private void dPanelToolStripMenuItem_Click(object sender, EventArgs e) { _3DViewer ucontrol = new _3DViewer(core.currentUAV); Pad threedPad = new Pad(ucontrol, "3D Viewer", DockState.Document); threedPad.Show(); threedPad.TopMost = true; }
private void instrumentPanelToolStripMenuItem_Click(object sender, EventArgs e) { Pad mypad = new Pad(new GroundControlUI.InstrumentPanel(), "Instrument Panel", WeifenLuo.WinFormsUI.Docking.DockState.Document); mypad.Show(this.dockPanel1); }