C# Class 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.
Inheritance: UserControlWin, IBOSelectorAndEditor
Afficher le fichier Open project: Chillisoft/habanero.faces

Private Properties

Свойство Type Description
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

Méthodes publiques

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

Private Methods

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

Method Details

BOSelectorAndBOEditorControlWin() public méthode

Constructor for the BOSelectorAndBOEditorControlWin
public BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, ClassDef classDef, string uiDefName ) : System
controlFactory IControlFactory
classDef ClassDef
uiDefName string
Résultat System

BOSelectorAndBOEditorControlWin() public méthode

Constructor for the BOSelectorAndBOEditorControlWin
public BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, IBOEditorControl iboEditorControl ) : System
controlFactory IControlFactory
iboEditorControl IBOEditorControl
Résultat System

BOSelectorAndBOEditorControlWin() public méthode

Constructor for the BOSelectorAndBOEditorControlWin
public BOSelectorAndBOEditorControlWin ( IControlFactory controlFactory, IBOEditorControl iboEditorControl, string gridUiDefName ) : System
controlFactory IControlFactory
iboEditorControl IBOEditorControl
gridUiDefName string
Résultat System

GetGridWidthToFitColumns() public static méthode

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

RefreshGrid() public méthode

Refreshes the Selector control (i.e. the
public RefreshGrid ( ) : void
Résultat void

RemoveGridSelectionChangedEvent() public méthode

Removes the GridSelectionChanged Event Handler from the IDataGridView.SelectionChanged event
public RemoveGridSelectionChangedEvent ( ) : void
Résultat void