C# Класс MissionPlanner.MainV2

Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Comports List
FlightData MissionPlanner.GCSViews.FlightData
FlightPlanner MissionPlanner.GCSViews.FlightPlanner
GUID_DEVINTERFACE_USB_DEVICE System.Guid
MONO bool
MainMenu System.Windows.Forms.MenuStrip
MenuConfigTune System.Windows.Forms.ToolStripButton
MenuConnect System.Windows.Forms.ToolStripButton
MenuFlightData System.Windows.Forms.ToolStripButton
MenuFlightPlanner System.Windows.Forms.ToolStripButton
MenuInitConfig System.Windows.Forms.ToolStripButton
MenuSimulation System.Windows.Forms.ToolStripButton
MenuTerminal System.Windows.Forms.ToolStripButton
TerminalTheming bool
View MissionPlanner.Controls.MainSwitcher
adsbPlanes adsb.PointLatLngAltHdg>.ConcurrentDictionary
cam WebCamService.Capture
comPortName string
displayicons menuicons
instance MainV2
joystick MissionPlanner.Joystick.Joystick
panel1 System.Windows.Forms.Panel
speechEnable bool
speechEngine MissionPlanner.Utilities.Speech

Открытые методы

Метод Описание
ChangeUnits ( ) : void
MainV2 ( ) : System
MenuSetup_Click ( object sender, EventArgs e ) : void
changelanguage ( CultureInfo ci ) : void
doConnect ( MAVLinkInterface comPort, string portname, string baud ) : void
doDisconnect ( MAVLinkInterface comPort ) : void
switchicons ( menuicons icons ) : void
updateLayout ( object sender, EventArgs e ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosing ( CancelEventArgs e ) : void

overriding the OnCLosing is a bit cleaner than handling the event, since it is this object. This happens before FormClosed

OnFormClosed ( System.Windows.Forms.FormClosedEventArgs e ) : void

this happens after FormClosing...

OnLoad ( EventArgs e ) : void
ProcessCmdKey ( Message &msg, Keys keyData ) : bool

keyboard shortcuts override

WndProc ( Message &m ) : void

Приватные методы

Метод Описание
AutoHideMenu ( bool hide ) : void
BGCreateMaps ( object state ) : void
BGFirmwareCheck ( object state ) : void
BGGetKIndex ( object state ) : void
BGLoadAirports ( object nothing ) : void
BGNoFly ( object state ) : void
BGgetTFR ( object state ) : void
CMB_baudrate_TextChanged ( object sender, EventArgs e ) : void
CMB_serialport_Click ( object sender, EventArgs e ) : void
CMB_serialport_SelectedIndexChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

KIndex_KIndex ( object sender, EventArgs e ) : void
LoadConfig ( ) : void
MainMenu_ItemClicked ( object sender, ToolStripItemClickedEventArgs e ) : void
MainMenu_MouseLeave ( object sender, EventArgs e ) : void
MainV2_KeyDown ( object sender, KeyEventArgs e ) : void
MainV2_Resize ( object sender, EventArgs e ) : void
MenuConnect_Click ( object sender, EventArgs e ) : void
MenuCustom_Click ( object sender, EventArgs e ) : void
MenuFlightData_Click ( object sender, EventArgs e ) : void
MenuFlightPlanner_Click ( object sender, EventArgs e ) : void
MenuHelp_Click ( object sender, EventArgs e ) : void
MenuSimulation_Click ( object sender, EventArgs e ) : void
MenuTerminal_Click ( object sender, EventArgs e ) : void
MenuTuning_Click ( object sender, EventArgs e ) : void
PluginThread ( ) : void
PopulateSerialportList ( ) : void
ResetConnectionStats ( ) : void
SaveConfig ( ) : void
SerialReader ( ) : void

main serial reader thread controls serial reading link quality stats speech voltage - custom - alt warning - data lost heartbeat packet sending and can't fall out

ShowConnectionStatsForm ( ) : void
SystemEvents_PowerModeChanged ( object sender, Microsoft e ) : void
UpdateConnectIcon ( ) : void

Used to fix the icon status for unexpected unplugs etc...

adsb_UpdatePlanePosition ( object sender, EventArgs e ) : void
autoHideToolStripMenuItem_Click ( object sender, EventArgs e ) : void
checkupdate ( object stuff ) : void
cmb_sysid_Click ( object sender, EventArgs e ) : void
comPort_MavChanged ( object sender, EventArgs e ) : void
connectionOptionsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fullScreenToolStripMenuItem_Click ( object sender, EventArgs e ) : void
joysticksend ( ) : void

thread used to send joystick packets to the MAV

menu_MouseEnter ( object sender, EventArgs e ) : void
readonlyToolStripMenuItem_Click ( object sender, EventArgs e ) : void
toolStripMenuItem1_Click ( object sender, EventArgs e ) : void

Описание методов

ChangeUnits() публичный Метод

public ChangeUnits ( ) : void
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

MainV2() публичный Метод

public MainV2 ( ) : System
Результат System

MenuSetup_Click() публичный Метод

public MenuSetup_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

OnClosing() защищенный Метод

overriding the OnCLosing is a bit cleaner than handling the event, since it is this object. This happens before FormClosed
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Результат void

OnFormClosed() защищенный Метод

this happens after FormClosing...
protected OnFormClosed ( System.Windows.Forms.FormClosedEventArgs e ) : void
e System.Windows.Forms.FormClosedEventArgs
Результат void

OnLoad() защищенный Метод

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

ProcessCmdKey() защищенный Метод

keyboard shortcuts override
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
Результат bool

WndProc() защищенный Метод

protected WndProc ( Message &m ) : void
m Message
Результат void

changelanguage() публичный Метод

public changelanguage ( CultureInfo ci ) : void
ci System.Globalization.CultureInfo
Результат void

doConnect() публичный Метод

public doConnect ( MAVLinkInterface comPort, string portname, string baud ) : void
comPort MAVLinkInterface
portname string
baud string
Результат void

doDisconnect() публичный Метод

public doDisconnect ( MAVLinkInterface comPort ) : void
comPort MAVLinkInterface
Результат void

switchicons() публичный Метод

public switchicons ( menuicons icons ) : void
icons menuicons
Результат void

updateLayout() публичный Метод

public updateLayout ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

Описание свойств

Comports публичное статическое свойство

passive comports
public static List Comports
Результат List

FlightData публичное свойство

declared here if i want a "single" instance of the form ie configuration gets reloaded on every click
public FlightData,MissionPlanner.GCSViews FlightData
Результат MissionPlanner.GCSViews.FlightData

FlightPlanner публичное свойство

public FlightPlanner,MissionPlanner.GCSViews FlightPlanner
Результат MissionPlanner.GCSViews.FlightPlanner

GUID_DEVINTERFACE_USB_DEVICE публичное статическое свойство

public static Guid,System GUID_DEVINTERFACE_USB_DEVICE
Результат System.Guid

MONO публичное статическое свойство

mono detection
public static bool MONO
Результат bool

MainMenu публичное свойство

public System.Windows.Forms.MenuStrip MainMenu
Результат System.Windows.Forms.MenuStrip

MenuConfigTune публичное свойство

public System.Windows.Forms.ToolStripButton MenuConfigTune
Результат System.Windows.Forms.ToolStripButton

MenuConnect публичное свойство

public System.Windows.Forms.ToolStripButton MenuConnect
Результат System.Windows.Forms.ToolStripButton

MenuFlightData публичное свойство

public System.Windows.Forms.ToolStripButton MenuFlightData
Результат System.Windows.Forms.ToolStripButton

MenuFlightPlanner публичное свойство

public System.Windows.Forms.ToolStripButton MenuFlightPlanner
Результат System.Windows.Forms.ToolStripButton

MenuInitConfig публичное свойство

public System.Windows.Forms.ToolStripButton MenuInitConfig
Результат System.Windows.Forms.ToolStripButton

MenuSimulation публичное свойство

public System.Windows.Forms.ToolStripButton MenuSimulation
Результат System.Windows.Forms.ToolStripButton

MenuTerminal публичное свойство

public System.Windows.Forms.ToolStripButton MenuTerminal
Результат System.Windows.Forms.ToolStripButton

TerminalTheming публичное статическое свойство

public static bool TerminalTheming
Результат bool

View публичное статическое свойство

public static MainSwitcher,MissionPlanner.Controls View
Результат MissionPlanner.Controls.MainSwitcher

adsbPlanes публичное свойство

public ConcurrentDictionary adsbPlanes
Результат adsb.PointLatLngAltHdg>.ConcurrentDictionary

cam публичное статическое свойство

hud background image grabber from a video stream - not realy that efficent. ie no hardware overlays etc.
public static WebCamService.Capture cam
Результат WebCamService.Capture

comPortName публичное статическое свойство

Comport name
public static string comPortName
Результат string

displayicons публичное статическое свойство

public static menuicons displayicons
Результат menuicons

instance публичное статическое свойство

used to call anything as needed.
public static MainV2,MissionPlanner instance
Результат MainV2

joystick публичное статическое свойство

joystick static class
public static Joystick,MissionPlanner.Joystick joystick
Результат MissionPlanner.Joystick.Joystick

panel1 публичное свойство

public System.Windows.Forms.Panel panel1
Результат System.Windows.Forms.Panel

speechEnable публичное статическое свойство

speech engine enable
public static bool speechEnable
Результат bool

speechEngine публичное статическое свойство

spech engine static class
public static Speech,MissionPlanner.Utilities speechEngine
Результат MissionPlanner.Utilities.Speech