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
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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