C# 클래스 SIL.FieldWorks.Common.Controls.ReplaceWithMethod

Implement FakeDoIt by replacing whatever matches the pattern with the result.
상속: DoItMethod
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
Doit ( int hvo ) : void

This is very like the base Doit, but we can save a duplicate pattern search by calling the BASE version of OkToChange rather than our own version, which tests for at least one match. We DO need to call the base version, e.g., so we don't change wordforms which shouldn't change because they are in use.

ReplaceWithMethod ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccessManaged sda, FieldReadWriter accessor, XmlNode spec, IVwPattern pattern, ITsString replacement ) : System

보호된 메소드들

메소드 설명
NewValue ( int hvo ) : ITsString

Actually produce the replacement string.

OkToChange ( int hvo ) : bool

We can do a replace if the pattern matches.

메소드 상세

Doit() 공개 메소드

This is very like the base Doit, but we can save a duplicate pattern search by calling the BASE version of OkToChange rather than our own version, which tests for at least one match. We DO need to call the base version, e.g., so we don't change wordforms which shouldn't change because they are in use.
public Doit ( int hvo ) : void
hvo int
리턴 void

NewValue() 보호된 메소드

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

OkToChange() 보호된 메소드

We can do a replace if the pattern matches.
protected OkToChange ( int hvo ) : bool
hvo int
리턴 bool

ReplaceWithMethod() 공개 메소드

public ReplaceWithMethod ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccessManaged sda, FieldReadWriter accessor, XmlNode spec, IVwPattern pattern, ITsString replacement ) : System
cache SIL.FieldWorks.FDO.FdoCache
sda ISilDataAccessManaged
accessor FieldReadWriter
spec System.Xml.XmlNode
pattern IVwPattern
replacement ITsString
리턴 System