public WorkstepViewInfo(String name, Canvas icon, WorkstepType group)
 {
     Name            = TranslatedName = name;
     Icon            = icon;
     Group           = group;
     TranslatedGroup = WorkstepViewManager.TranslateGroup(group);
 }
        public WorkstepViewInfo(String name, UIElement uiElement, WorkstepType group)
        {
            Name = TranslatedName = name;
            var canvas = new Canvas();

            canvas.Children.Add(uiElement);
            Icon            = canvas;
            Group           = group;
            TranslatedGroup = WorkstepViewManager.TranslateGroup(group);
        }
        public static string TranslateGroup(WorkstepType group)
        {
            switch (group)
            {
            case WorkstepType.Pre:
                return(Resources.Localization.Strings.Pre);

            //return Resources.Localization.Strings.General;
            case WorkstepType.Post:
                return(Resources.Localization.Strings.Post);

            case WorkstepType.Misc:
                return(Resources.Localization.Strings.Misc);

            default:
                return(Resources.Localization.Strings.SettingsGroupNotFound);
            }
        }