C# Класс SIL.FieldWorks.Common.Widgets.LabeledMultiStringView

LabeledMultiStringView displays one or more writing system alternatives of a string property. It simply edits that property.
Наследование: SIL.FieldWorks.Common.RootSites.RootSiteControl
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CheckDisposed ( ) : void

Throw if the IsDisposed property is true

FinishInit ( ) : void

Call this on initialization when all properties (e.g., ConfigurationNode) are set. The purpose is when reusing the slice, when we may have to reconstruct the root box.

FinishInit ( XmlNode configurationNode ) : void

Get any text styles from configuration node (which is now available; it was not at construction)

GetMessageTargets ( ) : IxCoreColleague[]

Required method for IXCoreColleague. Return the message targets for the inner view.

GetWritingSystemOptions ( bool fIncludeUncheckedActiveWss ) : List

returns a list of the writing systems available to display for this view

Init ( XCore.Mediator mediator, XmlNode configurationParameters ) : void

Required method for IXCoreColleague. As a colleague, it behaves exactly like its inner view.

LabeledMultiStringView ( int hvo, int flid, int wsMagic, bool forceIncludeEnglish, bool editable ) : System

Constructor.

LabeledMultiStringView ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : System

Constructor.

RefreshDisplay ( ) : bool

On a major refresh, the writing system list may have changed; update accordingly.

Reuse ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : void

Re-initialize this view as if it had been constructed with the specified arguments.

SelectAt ( int ws, int ich ) : void

Make a selection in the specified writing system at the specified character offset. Note: selecting other than the first writing system is not yet implemented.

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

Метод Описание
Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

OnLayout ( LayoutEventArgs levent ) : void

Arrange our sound controls if any.

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

Метод Описание
CreateNewSoundFilename ( string &path ) : string
DisposeSoundControls ( ) : void
SetupSoundControls ( ) : void
TriggerDisplay ( IVwEnv vwenv ) : void

WsForSoundField ( ShortSoundFieldControl sc, int &wsIndex ) : IWritingSystem

If we're shutting down, this might return null

soundFieldControl_BeforeStartingToRecord ( object sender, EventArgs e ) : void
soundFieldControl_SoundDeleted ( object sender, EventArgs e ) : void
soundFieldControl_SoundRecorded ( object sender, EventArgs e ) : void

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

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

Throw if the IsDisposed property is true
public CheckDisposed ( ) : void
Результат void

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

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Call this on initialization when all properties (e.g., ConfigurationNode) are set. The purpose is when reusing the slice, when we may have to reconstruct the root box.
public FinishInit ( ) : void
Результат void

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

Get any text styles from configuration node (which is now available; it was not at construction)
public FinishInit ( XmlNode configurationNode ) : void
configurationNode System.Xml.XmlNode
Результат void

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

Required method for IXCoreColleague. Return the message targets for the inner view.
public GetMessageTargets ( ) : IxCoreColleague[]
Результат IxCoreColleague[]

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

returns a list of the writing systems available to display for this view
public GetWritingSystemOptions ( bool fIncludeUncheckedActiveWss ) : List
fIncludeUncheckedActiveWss bool if false, include only current wss, /// if true, includes unchecked active wss.
Результат List

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

Required method for IXCoreColleague. As a colleague, it behaves exactly like its inner view.
public Init ( XCore.Mediator mediator, XmlNode configurationParameters ) : void
mediator XCore.Mediator
configurationParameters System.Xml.XmlNode
Результат void

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

Constructor.
public LabeledMultiStringView ( int hvo, int flid, int wsMagic, bool forceIncludeEnglish, bool editable ) : System
hvo int
flid int
wsMagic int
forceIncludeEnglish bool
editable bool
Результат System

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

Constructor.
public LabeledMultiStringView ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : System
hvo int
flid int
wsMagic int
wsOptional int
forceIncludeEnglish bool
editable bool
spellCheck bool
Результат System

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

Arrange our sound controls if any.
protected OnLayout ( LayoutEventArgs levent ) : void
levent LayoutEventArgs
Результат void

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

On a major refresh, the writing system list may have changed; update accordingly.
public RefreshDisplay ( ) : bool
Результат bool

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

Re-initialize this view as if it had been constructed with the specified arguments.
public Reuse ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : void
hvo int
flid int
wsMagic int
wsOptional int
forceIncludeEnglish bool
editable bool
spellCheck bool
Результат void

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

Make a selection in the specified writing system at the specified character offset. Note: selecting other than the first writing system is not yet implemented.
public SelectAt ( int ws, int ich ) : void
ws int
ich int
Результат void