C# Class CadEditor.UtilsGui

ファイルを表示 Open project: spiiin/CadEditor Class Usage Examples

Public Methods

Method 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 method

public static askToSave ( bool &dirty, SaveFunction saveToFile, ReturnComboBoxIndexFunction returnCbLevelIndex ) : bool
dirty bool
saveToFile SaveFunction
returnCbLevelIndex ReturnComboBoxIndexFunction
return bool

getVisibleRectangle() public static method

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

prepareBlocksPanel() public static method

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
return void

reloadBlocksPanel() public static method

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
return void

setCbCheckedWithoutUpdateLevel() public static method

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

setCbIndexWithoutUpdateLevel() public static method

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

setCbItemsCount() public static method

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