C# Класс SIL.FieldWorks.Common.Controls.FlatListChooserBEditControl

This class implements setting an atomic reference property to a value chosen from a flat list, by means of a combo box showing the items in the list.
Наследование: IBulkEditSpecControl, IGhostable, IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_cache SIL.FieldWorks.FDO.FdoCache
m_combo SIL.FieldWorks.Common.Widgets.FwComboBox
m_flidAtomicProp int
m_hvoList int
m_mediator XCore.Mediator
m_sda XMLViewsDataCache
m_useAbbr bool
m_ws int

Открытые методы

Метод Описание
Dispose ( ) : void
DoIt ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
FakeDoit ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnabled, SIL.FieldWorks.Common.Controls.ProgressState state ) : void

This is called when the preview button is clicked. The control is passed the list of currently active (filtered and checked) items. It should cache tagEnabled to zero for any objects that can't be modified. For ones that can, it should set the string property tagFakeFlid to the value to show in the 'modified' fields.

FlatListChooserBEditControl ( int flidAtomicProp, int hvoList, int ws, bool useAbbr ) : System
InitForGhostItems ( SIL.FieldWorks.FDO.FdoCache cache, XmlNode colSpec ) : void
MakeSuggestions ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnabled, SIL.FieldWorks.Common.Controls.ProgressState state ) : void

Used by SemanticDomainChooserBEditControl to make suggestions and then call FakeDoIt

SetClearField ( ) : void

And does it by choosing the final, 'Not sure' item.

Защищенные методы

Метод Описание
Dispose ( bool fDisposing ) : void
FillComboBox ( ) : void
UpdateListItemToNewValue ( ISilDataAccess sda, int hvoItem, int hvoSel, int hvoOld ) : void

m_combo_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the m_combo control.

Приватные методы

Метод Описание
GetItemLabel ( int hvoChild, int tagName ) : ITsString

Gets the item label.

GetLabeledList ( ) : List
GetOriginalListValue ( ISilDataAccess sda, int hvoItem ) : int

It's possible that hvoItem will be an owner of a ghost (ie. an absent source object for m_flidAtomicProp). In that case, the cache should return 0.

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool fDisposing ) : void
fDisposing bool
Результат void

DoIt() публичный Метод

public DoIt ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
state SIL.FieldWorks.Common.Controls.ProgressState
Результат void

FakeDoit() публичный Метод

This is called when the preview button is clicked. The control is passed the list of currently active (filtered and checked) items. It should cache tagEnabled to zero for any objects that can't be modified. For ones that can, it should set the string property tagFakeFlid to the value to show in the 'modified' fields.
public FakeDoit ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnabled, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable The items to change.
tagFakeFlid int The tag fake flid.
tagEnabled int The tag enabled.
state SIL.FieldWorks.Common.Controls.ProgressState The state.
Результат void

FillComboBox() защищенный Метод

protected FillComboBox ( ) : void
Результат void

FlatListChooserBEditControl() публичный Метод

public FlatListChooserBEditControl ( int flidAtomicProp, int hvoList, int ws, bool useAbbr ) : System
flidAtomicProp int
hvoList int
ws int
useAbbr bool
Результат System

InitForGhostItems() публичный Метод

public InitForGhostItems ( SIL.FieldWorks.FDO.FdoCache cache, XmlNode colSpec ) : void
cache SIL.FieldWorks.FDO.FdoCache
colSpec System.Xml.XmlNode
Результат void

MakeSuggestions() публичный Метод

Used by SemanticDomainChooserBEditControl to make suggestions and then call FakeDoIt
public MakeSuggestions ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnabled, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
tagFakeFlid int
tagEnabled int
state SIL.FieldWorks.Common.Controls.ProgressState
Результат void

SetClearField() публичный Метод

And does it by choosing the final, 'Not sure' item.
public SetClearField ( ) : void
Результат void

UpdateListItemToNewValue() защищенный Метод

protected UpdateListItemToNewValue ( ISilDataAccess sda, int hvoItem, int hvoSel, int hvoOld ) : void
sda ISilDataAccess
hvoItem int
hvoSel int
hvoOld int
Результат void

m_combo_SelectedIndexChanged() защищенный Метод

Handles the SelectedIndexChanged event of the m_combo control.
protected m_combo_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Результат void

Описание свойств

m_cache защищенное свойство

protected FdoCache,SIL.FieldWorks.FDO m_cache
Результат SIL.FieldWorks.FDO.FdoCache

m_combo защищенное свойство

protected FwComboBox,SIL.FieldWorks.Common.Widgets m_combo
Результат SIL.FieldWorks.Common.Widgets.FwComboBox

m_flidAtomicProp защищенное свойство

protected int m_flidAtomicProp
Результат int

m_hvoList защищенное свойство

protected int m_hvoList
Результат int

m_mediator защищенное свойство

protected Mediator,XCore m_mediator
Результат XCore.Mediator

m_sda защищенное свойство

protected XMLViewsDataCache,SIL.FieldWorks.Common.Controls m_sda
Результат XMLViewsDataCache

m_useAbbr защищенное свойство

protected bool m_useAbbr
Результат bool

m_ws защищенное свойство

protected int m_ws
Результат int