C# Class Eryan.UI.ClientWindow

The Eryan Client window, handles the adding and removing of bot windows/loading scripts/etc.
Inheritance: System.Utils
Mostra file Open project: emist/Eryan Class Usage Examples

Public Properties

Property Type Description
running System.Boolean
tabControl1 System.Windows.Forms.TabControl
tabPage1 System.Windows.Forms.TabPage

Public Methods

Method Description
ClientWindow ( ) : System

Create the ClientWindow intance

addControlToTab ( System.Utils form ) : void

Thread-safe way to add a WindowHandler to its controltab

createBot ( ) : Bot

Thread-safe Bot creator

drawString ( String str, Font f, Point loc, bool antialiasing ) : void
getBots ( ) : List

Getter for the Bot list.

Protected Methods

Method Description
OnMove ( EventArgs e ) : void

Updates the location of the drawable area

OnResize ( EventArgs e ) : void

Updates the location of the drawable area

OnVisibleChanged ( EventArgs e ) : void

Updates the location of the drawable area

Private Methods

Method Description
ClientWindow_FormClosed ( Object sender, System.Windows.Forms.FormClosedEventArgs e ) : void
ClientWindow_FormClosing ( Object sender, FormClosingEventArgs e ) : void
ClientWindow_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void
LogToggle_Click ( object sender, EventArgs e ) : void
loadScriptBtn_Click ( object sender, EventArgs e ) : void
mouseInput_Click ( object sender, System e ) : void

Handles the input button

panel1_Paint ( object sender, PaintEventArgs e ) : void
runButton_Click ( object sender, System e ) : void

Handles the Run/Stop button

stopScriptBtn_Click ( object sender, System e ) : void
tabPage1_Click ( object sender, EventArgs e ) : void

Method Details

ClientWindow() public method

Create the ClientWindow intance
public ClientWindow ( ) : System
return System

OnMove() protected method

Updates the location of the drawable area
protected OnMove ( EventArgs e ) : void
e System.EventArgs EventArgs for the event
return void

OnResize() protected method

Updates the location of the drawable area
protected OnResize ( EventArgs e ) : void
e System.EventArgs EventArgs for the event
return void

OnVisibleChanged() protected method

Updates the location of the drawable area
protected OnVisibleChanged ( EventArgs e ) : void
e System.EventArgs EventArgs for the event
return void

addControlToTab() public method

Thread-safe way to add a WindowHandler to its controltab
public addControlToTab ( System.Utils form ) : void
form System.Utils The instance of WindowHandler to add
return void

createBot() public method

Thread-safe Bot creator
public createBot ( ) : Bot
return Bot

drawString() public method

public drawString ( String str, Font f, Point loc, bool antialiasing ) : void
str String
f System.Drawing.Font
loc Point
antialiasing bool
return void

getBots() public method

Getter for the Bot list.
public getBots ( ) : List
return List

Property Details

running public_oe property

public Boolean,System running
return System.Boolean

tabControl1 public_oe property

public TabControl,System.Windows.Forms tabControl1
return System.Windows.Forms.TabControl

tabPage1 public_oe property

public TabPage,System.Windows.Forms tabPage1
return System.Windows.Forms.TabPage