C# Class CrossStitchCreator.PatternEditor

Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: adrianj/CrossStitchCreator Class Usage Examples

Public Methods

Method Description
AddPattern ( IColourInfo c ) : void
AddPattern ( IColourInfo c, Bitmap b ) : void
AddPattern ( IColourInfo c, Bitmap bm, string imageKey ) : void
GetPattern ( Color c ) : Bitmap
GetPatterns ( ) : Bitmap>.Dictionary
PatternEditor ( MainForm parent ) : System
UpdateColourMap ( ) : void

Associates each of the colours in the pattern list with the number of times the colour appears. Will not set if number of entries exceeds MainForm.MAX_COLOURS

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CreateNewPattern ( ) : Bitmap
InitializeComponent ( ) : void

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

addButton_Click ( object sender, EventArgs e ) : void
patternList_SelectedIndexChanged ( object sender, EventArgs e ) : void
pictureBox_MouseDown ( object sender, MouseEventArgs e ) : void
pictureBox_MouseLeave ( object sender, EventArgs e ) : void
pictureBox_MouseMove ( object sender, MouseEventArgs e ) : void
pictureBox_MouseUp ( object sender, MouseEventArgs e ) : void
setImage ( Bitmap b ) : void
setListItem ( int listIndex ) : void
sortingCombo_DropDownClosed ( object sender, EventArgs e ) : void
updateButton_Click ( object sender, EventArgs e ) : void

Method Details

AddPattern() public method

public AddPattern ( IColourInfo c ) : void
c IColourInfo
return void

AddPattern() public method

public AddPattern ( IColourInfo c, Bitmap b ) : void
c IColourInfo
b System.Drawing.Bitmap
return void

AddPattern() public method

public AddPattern ( IColourInfo c, Bitmap bm, string imageKey ) : void
c IColourInfo
bm System.Drawing.Bitmap
imageKey string
return void

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

GetPattern() public method

public GetPattern ( Color c ) : Bitmap
c Color
return System.Drawing.Bitmap

GetPatterns() public method

public GetPatterns ( ) : Bitmap>.Dictionary
return Bitmap>.Dictionary

PatternEditor() public method

public PatternEditor ( MainForm parent ) : System
parent MainForm
return System

UpdateColourMap() public method

Associates each of the colours in the pattern list with the number of times the colour appears. Will not set if number of entries exceeds MainForm.MAX_COLOURS
public UpdateColourMap ( ) : void
return void