C# Класс CrossStitchCreator.PatternEditor

Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

AddPattern() публичный Метод

public AddPattern ( IColourInfo c ) : void
c IColourInfo
Результат void

AddPattern() публичный Метод

public AddPattern ( IColourInfo c, Bitmap b ) : void
c IColourInfo
b System.Drawing.Bitmap
Результат void

AddPattern() публичный Метод

public AddPattern ( IColourInfo c, Bitmap bm, string imageKey ) : void
c IColourInfo
bm System.Drawing.Bitmap
imageKey string
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetPattern() публичный Метод

public GetPattern ( Color c ) : Bitmap
c Color
Результат System.Drawing.Bitmap

GetPatterns() публичный Метод

public GetPatterns ( ) : Bitmap>.Dictionary
Результат Bitmap>.Dictionary

PatternEditor() публичный Метод

public PatternEditor ( MainForm parent ) : System
parent MainForm
Результат System

UpdateColourMap() публичный Метод

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
Результат void