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
Показать файл Открыть проект

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