C# Class CadEditor.UtilsGui

Afficher le fichier Open project: spiiin/CadEditor Class Usage Examples

Méthodes publiques

Méthode Description
askToSave ( bool &dirty, SaveFunction saveToFile, ReturnComboBoxIndexFunction returnCbLevelIndex ) : bool
getVisibleRectangle ( Control panel, Control insideControl ) : Rectangle
prepareBlocksPanel ( System.Windows.Forms.FlowLayoutPanel blocksPanel, Size buttonSize, ImageList buttonsImages, EventHandler buttonBlockClick, int startIndex, int count ) : void
reloadBlocksPanel ( System.Windows.Forms.FlowLayoutPanel blocksPanel, ImageList buttonsImages, int startIndex, int count ) : void
setCbCheckedWithoutUpdateLevel ( CheckBox cb, EventHandler ev, bool index = false ) : void
setCbIndexWithoutUpdateLevel ( ComboBox cb, EventHandler ev, int index ) : void
setCbItemsCount ( ComboBox cb, int count, int first, bool inHex = false ) : void

Method Details

askToSave() public static méthode

public static askToSave ( bool &dirty, SaveFunction saveToFile, ReturnComboBoxIndexFunction returnCbLevelIndex ) : bool
dirty bool
saveToFile SaveFunction
returnCbLevelIndex ReturnComboBoxIndexFunction
Résultat bool

getVisibleRectangle() public static méthode

public static getVisibleRectangle ( Control panel, Control insideControl ) : Rectangle
panel System.Windows.Forms.Control
insideControl System.Windows.Forms.Control
Résultat System.Drawing.Rectangle

prepareBlocksPanel() public static méthode

public static prepareBlocksPanel ( System.Windows.Forms.FlowLayoutPanel blocksPanel, Size buttonSize, ImageList buttonsImages, EventHandler buttonBlockClick, int startIndex, int count ) : void
blocksPanel System.Windows.Forms.FlowLayoutPanel
buttonSize System.Drawing.Size
buttonsImages System.Windows.Forms.ImageList
buttonBlockClick EventHandler
startIndex int
count int
Résultat void

reloadBlocksPanel() public static méthode

public static reloadBlocksPanel ( System.Windows.Forms.FlowLayoutPanel blocksPanel, ImageList buttonsImages, int startIndex, int count ) : void
blocksPanel System.Windows.Forms.FlowLayoutPanel
buttonsImages System.Windows.Forms.ImageList
startIndex int
count int
Résultat void

setCbCheckedWithoutUpdateLevel() public static méthode

public static setCbCheckedWithoutUpdateLevel ( CheckBox cb, EventHandler ev, bool index = false ) : void
cb System.Windows.Forms.CheckBox
ev EventHandler
index bool
Résultat void

setCbIndexWithoutUpdateLevel() public static méthode

public static setCbIndexWithoutUpdateLevel ( ComboBox cb, EventHandler ev, int index ) : void
cb System.Windows.Forms.ComboBox
ev EventHandler
index int
Résultat void

setCbItemsCount() public static méthode

public static setCbItemsCount ( ComboBox cb, int count, int first, bool inHex = false ) : void
cb System.Windows.Forms.ComboBox
count int
first int
inHex bool
Résultat void