C# Class SIL.FieldWorks.XWorks.MorphologyEditor.RuleFormulaSlice

This is a view slice that contains a RuleFormulaControl. It is extended by phonological/morphological rule slices.
Inheritance: SIL.FieldWorks.Common.Framework.DetailControls.ViewSlice, XCore.IxCoreColleague
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int
Dispose ( bool disposing ) : void
OnEnter ( EventArgs e ) : void
OnLeave ( EventArgs e ) : void

Private Methods

Méthode Description
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.

Method Details

DesiredHeight() protected méthode

protected DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int
rs SIL.FieldWorks.Common.RootSites.RootSite
Résultat int

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InsertionControl_SizeChanged() public méthode

public InsertionControl_SizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Install() public méthode

public Install ( DataTree parent ) : void
parent SIL.FieldWorks.Common.Framework.DetailControls.DataTree
Résultat void

OnContextJumpToNaturalClass() public méthode

public OnContextJumpToNaturalClass ( object args ) : bool
args object
Résultat bool

OnContextJumpToPhoneme() public méthode

public OnContextJumpToPhoneme ( object args ) : bool
args object
Résultat bool

OnContextSetFeatures() public méthode

public OnContextSetFeatures ( object args ) : bool
args object
Résultat bool

OnDisplayContextJumpToNaturalClass() public méthode

public OnDisplayContextJumpToNaturalClass ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
Résultat bool

OnDisplayContextJumpToPhoneme() public méthode

public OnDisplayContextJumpToPhoneme ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
Résultat bool

OnDisplayContextSetFeatures() public méthode

public OnDisplayContextSetFeatures ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
Résultat bool

OnEnter() protected méthode

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnLeave() protected méthode

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

RuleFormulaSlice() public méthode

public RuleFormulaSlice ( ) : System
Résultat System