C# Class Air_Hockey_Simulator.AirHockeySimCtrl

Inheritance: System.Windows.Forms.UserControl
Afficher le fichier Open project: CallumJHays/AirHockeyRobot

Méthodes publiques

Свойство Type Description
tm MicroTimer

Méthodes publiques

Méthode Description
AirHockeySimCtrl ( ) : System
DrawArc ( Graphics g, Arc a, Pen p ) : void
DrawLine ( Graphics g, Line l, Pen p ) : void
Init ( ) : void
OnUpdated ( ) : void
SetupGraphics ( Graphics g, string detail ) : void
getFromInt ( int i ) : Pen
s ( double input ) : float
si ( double input ) : int

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Private Methods

Méthode Description
InitializeComponent ( ) : void

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

Tm_MicroTimerElapsed ( object sender, MicroTimerEventArgs timerEventArgs ) : void
getPuckRectangle ( Puck p ) : RectangleF

Method Details

AirHockeySimCtrl() public méthode

public AirHockeySimCtrl ( ) : System
Résultat System

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

DrawArc() public méthode

public DrawArc ( Graphics g, Arc a, Pen p ) : void
g System.Drawing.Graphics
a Arc
p System.Drawing.Pen
Résultat void

DrawLine() public méthode

public DrawLine ( Graphics g, Line l, Pen p ) : void
g System.Drawing.Graphics
l Line
p System.Drawing.Pen
Résultat void

Init() public méthode

public Init ( ) : void
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnUpdated() public méthode

public OnUpdated ( ) : void
Résultat void

SetupGraphics() public méthode

public SetupGraphics ( Graphics g, string detail ) : void
g System.Drawing.Graphics
detail string
Résultat void

getFromInt() public méthode

public getFromInt ( int i ) : Pen
i int
Résultat System.Drawing.Pen

s() public méthode

public s ( double input ) : float
input double
Résultat float

si() public méthode

public si ( double input ) : int
input double
Résultat int

Property Details

tm public_oe property

public MicroTimer,Air_Hockey_Simulator tm
Résultat MicroTimer