C# Class CrossStitchCreator.PatternEditor

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: adrianj/CrossStitchCreator Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

public AddPattern ( IColourInfo c ) : void
c IColourInfo
Résultat void

AddPattern() public méthode

public AddPattern ( IColourInfo c, Bitmap b ) : void
c IColourInfo
b System.Drawing.Bitmap
Résultat void

AddPattern() public méthode

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

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

GetPattern() public méthode

public GetPattern ( Color c ) : Bitmap
c Color
Résultat System.Drawing.Bitmap

GetPatterns() public méthode

public GetPatterns ( ) : Bitmap>.Dictionary
Résultat Bitmap>.Dictionary

PatternEditor() public méthode

public PatternEditor ( MainForm parent ) : System
parent MainForm
Résultat System

UpdateColourMap() public méthode

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
Résultat void