C# Class AnimalCrossingQR.ColorDialog

Inheritance: System.Windows.Forms.Form
显示文件 Open project: jefff/animalcrossingqr

Public Methods

Method Description
ColorDialog ( ) : System
ColorDialog ( PaletteList list ) : System
GetAsPalette ( ) : Palette

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ColorDialog_Load ( object sender, EventArgs e ) : void
DrawFullColorPalette ( Graphics graphics ) : void
DrawNineBox ( Graphics graphics, int x, int y, int colorIndex ) : void
GetColorClick ( int pX, int pY ) : int?
InitializeComponent ( ) : void

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

IsInNineBox ( int x, int y, int pX, int pY ) : int?
IsInRectangle ( Rectangle rect, int pX, int pY ) : bool
OnColorPaletteChanged ( ) : void
UpdateLabels ( ) : void
cancelButton_Click ( object sender, EventArgs e ) : void
colorPanel_MouseClick ( object sender, MouseEventArgs e ) : void
colorPanel_Paint ( object sender, PaintEventArgs e ) : void
okButton_Click ( object sender, EventArgs e ) : void

Method Details

ColorDialog() public method

public ColorDialog ( ) : System
return System

ColorDialog() public method

public ColorDialog ( PaletteList list ) : System
list PaletteList
return System

Dispose() protected method

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

GetAsPalette() public method

public GetAsPalette ( ) : Palette
return AnimalCrossingQR.AC.Palette