C# Class YamuiFramework.Forms.YamuiForm

Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: jcaillon/3P Class Usage Examples

Private Properties

Property Type Description
AddWindowButton void
CheckAeroEnabled bool
FocusMe bool
HitTestNca WinApi.HitTest
MoveControl void
OnGetMinMaxInfo void
OnShown void
RemoveCloseButton void
UpdateWindowButtonPosition void
WindowButton_Click void

Public Methods

Method Description
CreateContent ( List menuDescriber ) : void

Automatically generates the tabs/pages

CreateTopLinks ( List links, EventHandler onTabPressed, int xPosFromRight = 120, int yPosFromTop = 10 ) : void

Automatically generates top links

FindFocusedControl ( ) : Control
Notify ( string message, int stickDurationSecs ) : void

Displays an animated notification on the bottom of the form you can choose how much time the notif will last (in seconds)

ShowPage ( string pageName ) : void

Go to page pagename

YamuiForm ( ) : System

Protected Methods

Method Description
OnClosing ( CancelEventArgs e ) : void
OnEnabledChanged ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void

On load of the form

OnMouseDown ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnResizeEnd ( EventArgs e ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
AddWindowButton ( WindowButtons button ) : void
CheckAeroEnabled ( ) : bool
FocusMe ( ) : bool
HitTestNca ( IntPtr hwnd, IntPtr wparam, IntPtr lparam ) : WinApi.HitTest
MoveControl ( ) : void
OnGetMinMaxInfo ( IntPtr hwnd, IntPtr lParam ) : void
OnShown ( object sender, EventArgs eventArgs ) : void

allows to do stuff only when everything is fully loaded

RemoveCloseButton ( ) : void
UpdateWindowButtonPosition ( ) : void
WindowButton_Click ( object sender, EventArgs e ) : void

Method Details

CreateContent() public method

Automatically generates the tabs/pages
public CreateContent ( List menuDescriber ) : void
menuDescriber List
return void

CreateTopLinks() public method

Automatically generates top links
public CreateTopLinks ( List links, EventHandler onTabPressed, int xPosFromRight = 120, int yPosFromTop = 10 ) : void
links List
onTabPressed EventHandler
xPosFromRight int
yPosFromTop int
return void

FindFocusedControl() public method

public FindFocusedControl ( ) : Control
return System.Windows.Forms.Control

Notify() public method

Displays an animated notification on the bottom of the form you can choose how much time the notif will last (in seconds)
public Notify ( string message, int stickDurationSecs ) : void
message string
stickDurationSecs int
return void

OnClosing() protected method

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnEnabledChanged() protected method

protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnLoad() protected method

On load of the form
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnResizeEnd() protected method

protected OnResizeEnd ( EventArgs e ) : void
e System.EventArgs
return void

ShowPage() public method

Go to page pagename
public ShowPage ( string pageName ) : void
pageName string
return void

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void

YamuiForm() public method

public YamuiForm ( ) : System
return System