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

            canvas.Children.Add(uiElement);
            Icon            = canvas;
            Group           = group;
            TranslatedGroup = MachineHourRateViewManager.TranslateGroup(group);
        }