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

Implement (Fake)DoIt by replacing the current value with an empty string.
Inheritance: DoItMethod
Exibir arquivo Open project: sillsdev/FieldWorks

Public Methods

Method Description
ClearMethod ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccessManaged sda, FieldReadWriter accessor, XmlNode spec ) : System

Protected Methods

Method Description
NewValue ( int hvo ) : ITsString

Actually produce the replacement string.

OkToChange ( int hvo ) : bool

We can do a replace if the current value is not empty.

Method Details

ClearMethod() public method

public ClearMethod ( 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

NewValue() protected method

Actually produce the replacement string.
protected NewValue ( int hvo ) : ITsString
hvo int
return ITsString

OkToChange() protected method

We can do a replace if the current value is not empty.
protected OkToChange ( int hvo ) : bool
hvo int
return bool