C# Class entity.Main.Form1

Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: troymac1ure/Entity

Public Methods

Method Description
Form1 ( ) : System

Initializes a new instance of the Form1 class.

Form1_DragDrop ( object sender, DragEventArgs e ) : void

The form 1_ drag drop.

LoadPlugins ( ) : void

Loads plugin sets into the plugin combobox and selects the current plugin

ReloadSkins ( ) : void

The reload skins.

TryLoadMapForm ( string mapFileName ) : MapForm

Attempts to load a mapand bring up a map form for it. Function will fail if the map is corrupt and display an error message. Provide a null string to show openfileDialog. Returns a refernce to the created mapform if needed

tsbtnDebugReset_Click ( object sender, System e ) : void

Performs a warm reboot of the system

tsbtnDebugReset_DoubleClick ( object sender, System e ) : void

Performs a cold reboot of the system

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Method Description
AddRecentFilesToMenu ( ) : void

Adds the recent files to menu.

Form1_Activated ( object sender, EventArgs e ) : void

When the form regains focus, we re-enable each opened map. This keeps the maps in the current selected order.

Form1_Deactivate ( object sender, EventArgs e ) : void

When the main form deactivates, we disable each open map window below the active MDI child window, otherwise the first OPENED map will always return to the focused position

Form1_DragEnter ( object sender, DragEventArgs e ) : void

The form 1_ drag enter.

Form1_FormClosing ( object sender, FormClosingEventArgs e ) : void

Handles the FormClosing event of the Form1 control.

Form1_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

IsThereAnUpdate ( object showInf ) : void

The is there an update.

MainMenuStrip_ItemAdded ( object sender, System.Windows.Forms.ToolStripItemEventArgs e ) : void

Removes the Minimize, Restore & Close buttons from being placed in out MenuStrip when maximized as they are placed in a strange location due to multiple toolstripmenus

UpdateRecentFiles ( string newFile ) : void

Adds a map to the recent files list. If it already exists, the map is relocated at the top of the list.

closeEntity_Click ( object sender, EventArgs e ) : void

The close entity_ click.

closemapmenu_Click ( object sender, EventArgs e ) : void

The closemapmenu_ click.

helpAbout_Click ( object sender, EventArgs e ) : void

The help about_ click.

helpContents_Click ( object sender, EventArgs e ) : void
helpVEControls_Click ( object sender, EventArgs e ) : void

The help ve controls_ click.

lastFile_Click ( object sender, EventArgs e ) : void

The last file_ click.

lockToolbarToolStripMenuItem_Click ( object sender, System e ) : void
mainMenu1_Click ( object sender, EventArgs e ) : void
mainmenuEdit_Click ( object sender, EventArgs e ) : void

Opens up the MAINMENU editor dialog.

mainmenuvisualedit_click ( object sender, EventArgs e ) : void
makeDefaultMapEditor_Click ( object sender, EventArgs e ) : void

Makes .MAP files open by default in Entity.

newMapForm_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void

Called when Entity is closed (closes all open instances of MAPFORM).

newmapmenu_Click ( object sender, EventArgs e ) : void

Opens the dialog to create a new map from a clean version

openmapmenu_Click ( object sender, EventArgs e ) : void

Opens a .MAP file into a MAPFORM

tileCascade_Click ( object sender, EventArgs e ) : void

The tile cascademenu item 5_ click.

tileHorizontal_Click ( object sender, EventArgs e ) : void

The tile horizontal menu click.

tileVertical_Click ( object sender, EventArgs e ) : void

The tile vertical menu click.

timerDebug_Tick ( object sender, EventArgs e ) : void
toolStripPanel_ControlAdded ( object sender, System.Windows.Forms.ControlEventArgs e ) : void
toolsCheckForUpdates_Click ( object sender, EventArgs e ) : void

The tools check for updates_ click.

toolsFormatPlugins_Click ( object sender, EventArgs e ) : void

The tools format plugins_ click.

toolsLatestPlugins_Click ( object sender, EventArgs e ) : void
toolsSettings_Click ( object sender, EventArgs e ) : void

The tools settings_ click.

toolsSkinOptions_Click ( object sender, EventArgs e ) : void

The tools skin options_ click.

toolsVideoSettings_Click ( object sender, EventArgs e ) : void

The tools video settings_ click.

tsb_CheckedChanged ( object sender, System e ) : void

Occurs when a toolbar is selected / deselected

tsbtnDebugConnect_Click ( object sender, EventArgs e ) : void
tsbtnDebugDisconnect_Click ( object sender, EventArgs e ) : void
tsbtnDebugLoadMap_Click ( object sender, EventArgs e ) : void
tsbtnEditPluginSet_Click ( object sender, EventArgs e ) : void
tscbPluginSet_SelectedIndexChanged ( object sender, EventArgs e ) : void
tstbDebugIP_Click ( object sender, System e ) : void

Makes it so when the DebugIP box is clicked and "" is written, it selects all letters for easy overtype

tstbDebugIP_TextChanged ( object sender, EventArgs e ) : void
updateContextMenuList ( ) : void

Updates menu strip listings in Context Menu Strip

updateMenuStripLock ( ) : void

Updates all MenuStrip Controls

updateMenuStripLock ( MenuStrip mStrip ) : void

Checks Locked status of menu strip and sets grip controls accordingly

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Form1() public method

Initializes a new instance of the Form1 class.
public Form1 ( ) : System
return System

Form1_DragDrop() public method

The form 1_ drag drop.
public Form1_DragDrop ( object sender, DragEventArgs e ) : void
sender object The sender.
e System.Windows.Forms.DragEventArgs The e.
return void

LoadPlugins() public method

Loads plugin sets into the plugin combobox and selects the current plugin
public LoadPlugins ( ) : void
return void

ProcessCmdKey() protected method

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool

ReloadSkins() public method

The reload skins.
public ReloadSkins ( ) : void
return void

TryLoadMapForm() public method

Attempts to load a mapand bring up a map form for it. Function will fail if the map is corrupt and display an error message. Provide a null string to show openfileDialog. Returns a refernce to the created mapform if needed
public TryLoadMapForm ( string mapFileName ) : MapForm
mapFileName string The map File Name.
return MapForm

tsbtnDebugReset_Click() public method

Performs a warm reboot of the system
public tsbtnDebugReset_Click ( object sender, System e ) : void
sender object
e System
return void

tsbtnDebugReset_DoubleClick() public method

Performs a cold reboot of the system
public tsbtnDebugReset_DoubleClick ( object sender, System e ) : void
sender object
e System
return void