C# 클래스 Habanero.UI.Win.BOSelectorAndBOEditorControlWin

Control For Win that displays a collection of a Business Object along side an editor/creator panel. The collection of business objects can be shown using any selector control e.g. an IEditableGridControl, IGridControl etc.
상속: UserControlWin, IBOSelectorAndEditor
파일 보기 프로젝트 열기: Chillisoft/habanero.faces

Private Properties

프로퍼티 타입 설명
AddGridSelectionChangedEvent void
CancelButtonClicked void
CheckRowSelectionCanChange bool
DeleteButtonClicked void
FireBusinessObjectSelected void
GridSelectionChanged void
NewButtonClicked void
PropertyUpdated void
SaveClickHandler void
SavePreviousBusinessObject void
SelectLastRowInGrid void
SetSelectedBusinessObject void
SetupButtonGroupControl void
SetupGridAndBOEditorControlWin void
SetupReadOnlyGridControl void
UpdateControlEnabledState void

공개 메소드들

메소드 설명
BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, ClassDef classDef, string uiDefName ) : System

Constructor for the BOSelectorAndBOEditorControlWin

BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, IBOEditorControl iboEditorControl ) : System

Constructor for the BOSelectorAndBOEditorControlWin

BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, IBOEditorControl iboEditorControl, string gridUiDefName ) : System

Constructor for the BOSelectorAndBOEditorControlWin

GetGridWidthToFitColumns ( IGridBase grid ) : int

Returns the Total width of the Selector. IGridBase. This is used so that the Selector and BOEditor can be layed out.

RefreshGrid ( ) : void

Refreshes the Selector control (i.e. the

RemoveGridSelectionChangedEvent ( ) : void

Removes the GridSelectionChanged Event Handler from the IDataGridView.SelectionChanged event

비공개 메소드들

메소드 설명
AddGridSelectionChangedEvent ( ) : void

Adds the GridSelectionChanged Event Handler to the IDataGridView.SelectionChanged event

CancelButtonClicked ( object sender, EventArgs e ) : void
CheckRowSelectionCanChange ( ) : bool

Using the RowValidating event did not work as expected, so this method provides a way to check whether the grid selection should be forced back to the previous selection

DeleteButtonClicked ( object sender, EventArgs e ) : void
FireBusinessObjectSelected ( IBusinessObject businessObject ) : void
GridSelectionChanged ( object sender, EventArgs e ) : void
NewButtonClicked ( object sender, EventArgs e ) : void

Deliberately adds BO to the grid's collection because current habanero model only adds BO to grid when it is saved. This causes a problem when you call col.CreateBO(), since it adds the BO twice and throws a duplicate key exception.

PropertyUpdated ( object sender, Habanero.Base.BOPropUpdatedEventArgs eventArgs ) : void
SaveClickHandler ( object sender, EventArgs e ) : void
SavePreviousBusinessObject ( ) : void
SelectLastRowInGrid ( ) : void
SetSelectedBusinessObject ( ) : void
SetupButtonGroupControl ( ) : void
SetupGridAndBOEditorControlWin ( IControlFactory controlFactory, IBOEditorControl iboEditorControl, string gridUiDefName ) : void
SetupReadOnlyGridControl ( string gridUiDefName ) : void
UpdateControlEnabledState ( ) : void

메소드 상세

BOSelectorAndBOEditorControlWin() 공개 메소드

Constructor for the BOSelectorAndBOEditorControlWin
public BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, ClassDef classDef, string uiDefName ) : System
controlFactory IControlFactory
classDef ClassDef
uiDefName string
리턴 System

BOSelectorAndBOEditorControlWin() 공개 메소드

Constructor for the BOSelectorAndBOEditorControlWin
public BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, IBOEditorControl iboEditorControl ) : System
controlFactory IControlFactory
iboEditorControl IBOEditorControl
리턴 System

BOSelectorAndBOEditorControlWin() 공개 메소드

Constructor for the BOSelectorAndBOEditorControlWin
public BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, IBOEditorControl iboEditorControl, string gridUiDefName ) : System
controlFactory IControlFactory
iboEditorControl IBOEditorControl
gridUiDefName string
리턴 System

GetGridWidthToFitColumns() 공개 정적인 메소드

Returns the Total width of the Selector. IGridBase. This is used so that the Selector and BOEditor can be layed out.
public static GetGridWidthToFitColumns ( IGridBase grid ) : int
grid IGridBase
리턴 int

RefreshGrid() 공개 메소드

Refreshes the Selector control (i.e. the
public RefreshGrid ( ) : void
리턴 void

RemoveGridSelectionChangedEvent() 공개 메소드

Removes the GridSelectionChanged Event Handler from the IDataGridView.SelectionChanged event
public RemoveGridSelectionChangedEvent ( ) : void
리턴 void