C# Class SIL.FieldWorks.Common.Controls.DoItMethod

This is a base class for several ways of faking and actually making a change.
Inheritance: IGetReplacedObjects
ファイルを表示 Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
m_accessor FieldReadWriter

Public Methods

Method Description
DoItMethod ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccessManaged sda, FieldReadWriter accessor, XmlNode spec ) : System
Doit ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
Doit ( int hvo ) : void

Make the change. Usually you can just override NewValue and/or OkToChange.

FakeDoit ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnable, SIL.FieldWorks.Common.Controls.ProgressState state ) : void

Fake doing the change by setting the specified property to the appropriate value for each item in the set. Disable items that can't be set.

Protected Methods

Method Description
NewValue ( int hvo ) : ITsString
OkToChange ( int hvo ) : bool
OldValue ( int hvo ) : ITsString

Get the old value, assuming it is some kind of string property

SetNewValue ( int hvoItem, ITsString tss ) : void

Private Methods

Method Description
IsMultilingual ( int flid ) : bool
IsMultilingual ( int flid, IFwMetaDataCache mdc ) : bool

Method Details

DoItMethod() public method

public DoItMethod ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccessManaged sda, FieldReadWriter accessor, XmlNode spec ) : System
cache SIL.FieldWorks.FDO.FdoCache
sda ISilDataAccessManaged
accessor FieldReadWriter
spec System.Xml.XmlNode
return System

Doit() public method

public Doit ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
state SIL.FieldWorks.Common.Controls.ProgressState
return void

Doit() public method

Make the change. Usually you can just override NewValue and/or OkToChange.
public Doit ( int hvo ) : void
hvo int
return void

FakeDoit() public method

Fake doing the change by setting the specified property to the appropriate value for each item in the set. Disable items that can't be set.
public FakeDoit ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnable, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable The items to change.
tagFakeFlid int The tag fake flid.
tagEnable int The tag enable.
state SIL.FieldWorks.Common.Controls.ProgressState The state.
return void

NewValue() protected abstract method

protected abstract NewValue ( int hvo ) : ITsString
hvo int
return ITsString

OkToChange() protected method

protected OkToChange ( int hvo ) : bool
hvo int
return bool

OldValue() protected method

Get the old value, assuming it is some kind of string property
protected OldValue ( int hvo ) : ITsString
hvo int
return ITsString

SetNewValue() protected method

protected SetNewValue ( int hvoItem, ITsString tss ) : void
hvoItem int
tss ITsString
return void

Property Details

m_accessor protected_oe property

protected FieldReadWriter,SIL.FieldWorks.Common.Controls m_accessor
return FieldReadWriter