コード例 #1
0
 public MachineHourRateViewInfo(String name, Canvas icon, MachineHourRateViewManager.Group group)
 {
     Name            = TranslatedName = name;
     Icon            = icon;
     Group           = group;
     TranslatedGroup = MachineHourRateViewManager.TranslateGroup(group);
 }
コード例 #2
0
        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);
        }