Table of Contents

Selected-Step Info Panel

The panel locates on the Player Panel.

The model is MachiningStep and UserEnv.

The MachiningStep is assigned by ClStrip.PosSelected.

Show step infomation from UserEnv.DisplayedStepPresentAccessList.

The resx of MachiningStep contains the translation of PresentAttribute.Name, apply the translation to the GUI. If the translation not existed, use the original value.

See Also Step Present Preference Page.

Sample Code

Refer the code to show step infomation.

internal static void ShowStepPresent(
    UserEnv userEnv, MachiningStep machiningStep)
{
    foreach (var entry in userEnv.DisplayedStepPresentAccessList)
    {
        var present = entry.Value.Present;
        var valueText = string.Format("{0:" + present.DataFormatString + "}", entry.Value.GetValueFunc.Invoke(machiningStep));
        Console.WriteLine($"{present.ShortName}: {valueText} {present.TailUnitString} ({present.Name} [{entry.Key}])");
    }
}

Single-User WPF Application Source Code Path

  • Play/SelectedStepInfoPanel

see this page for git repository.