コード例 #1
0
 public PrinterViewInfo(String name, Canvas icon, Printer3dType group)
 {
     Name            = TranslatedName = name;
     Icon            = icon;
     Group           = group;
     TranslatedGroup = PrinterViewManager.TranslateGroup(group);
 }
コード例 #2
0
        public PrinterViewInfo(String name, UIElement uiElement, Printer3dType group)
        {
            Name = TranslatedName = name;
            var canvas = new Canvas();

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