C# Класс SIL.FieldWorks.XWorks.MorphologyEditor.RuleFormulaSlice

This is a view slice that contains a RuleFormulaControl. It is extended by phonological/morphological rule slices.
Наследование: SIL.FieldWorks.Common.Framework.DetailControls.ViewSlice, XCore.IxCoreColleague
Показать файл Открыть проект

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

Метод Описание
InsertionControl_SizeChanged ( object sender, EventArgs e ) : void
Install ( DataTree parent ) : void
OnContextJumpToNaturalClass ( object args ) : bool
OnContextJumpToPhoneme ( object args ) : bool
OnContextSetFeatures ( object args ) : bool
OnDisplayContextJumpToNaturalClass ( object commandObject, XCore &display ) : bool
OnDisplayContextJumpToPhoneme ( object commandObject, XCore &display ) : bool
OnDisplayContextSetFeatures ( object commandObject, XCore &display ) : bool
RuleFormulaSlice ( ) : System

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

Метод Описание
DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int
Dispose ( bool disposing ) : void
OnEnter ( EventArgs e ) : void
OnLeave ( EventArgs e ) : void

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

Метод Описание
SetSubcontrolHeights ( Control ctrl, int oldHeight, int newHeight ) : void

Set the heights of subcontrols to the new value if they're equal to the old value. (This appears to be done automatically by the Windows .Net implementation during the call to InsertionControl.Show(), even before the specific setting of Height in OnEnter()!)

Setting only RuleFormulaControl.Height fails, because the process of setting the height triggers a layout, and the layout code changes the height to be no more than that of its parent control. There are two levels of control between RuleFormulaSlice and RuleFormulaControl, so the heights of those controls must be adjusted as well. I suppose something like this could be inserted into the implementation of Control.Height, but I'm reluctant to do so, partly because even then the behavior would not really match that of the Windows .Net implementation.

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

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

protected DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int
rs SIL.FieldWorks.Common.RootSites.RootSite
Результат int

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

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public InsertionControl_SizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

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

public Install ( DataTree parent ) : void
parent SIL.FieldWorks.Common.Framework.DetailControls.DataTree
Результат void

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

public OnContextJumpToNaturalClass ( object args ) : bool
args object
Результат bool

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

public OnContextJumpToPhoneme ( object args ) : bool
args object
Результат bool

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

public OnContextSetFeatures ( object args ) : bool
args object
Результат bool

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

public OnDisplayContextJumpToNaturalClass ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
Результат bool

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

public OnDisplayContextJumpToPhoneme ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
Результат bool

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

public OnDisplayContextSetFeatures ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
Результат bool

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

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
Результат void

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

public RuleFormulaSlice ( ) : System
Результат System