Exemple #1
0
 internal void Update(List <node> _nodes, designGraph _graph, GraphGUI _gui)
 {
     nodes    = _nodes;
     graph    = _graph;
     gui      = _gui;
     nodeIcon = ((DisplayShape)firstNode.DisplayShape).icon;
     Update();
 }
Exemple #2
0
        public IconThemeComponent(ThemeComponentType componentType, string componentName, IconSize componentIconSize, IconColor componentIconColor, IconShape componentIconShape)
        {
            if (componentName == null)
            {
                throw new ArgumentException("Null parameters not allowed in IconThemeComponent constructor");
            }

            ComponentType = componentType;
            ComponentName = componentName;
            IconSize      = componentIconSize;
            IconColor     = componentIconColor;
            IconShape     = componentIconShape;
        }
 public MapIconBlockItem(IconSize size, IconColor iconColor, IconShape iconShape) : base(size, iconColor, iconShape)
 {
 }
Exemple #4
0
 public IBaseSum WithIconShape(IconShape shape)
 {
     _IconShape = shape;
     return(this);
 }
        public ThemeComponent AddComponent(ThemeComponentType componentType, string componentName, IconSize componentIconSize, IconColor componentIconColor, IconShape componentIconShape)
        {
            if (ComponentExists(componentType, componentName))
            {
                return(Items.FirstOrDefault(t => t.ComponentName == componentName && t.ComponentType == componentType));
            }

            var component = new IconThemeComponent(componentType, componentName, componentIconSize, componentIconColor, componentIconShape);

            Items.Add(component);

            return(component);
        }
Exemple #6
0
 private void OnThemeComponentUpdated(object sender, EventArgs e)
 {
     Size  = ((IconThemeComponent)sender).IconSize;
     Color = ((IconThemeComponent)sender).IconColor;
     Shape = ((IconThemeComponent)sender).IconShape;
 }
Exemple #7
0
 protected IconBlockItem(IconSize size, IconColor color, IconShape shape)
 {
     Size  = size;
     Color = color;
     Shape = shape;
 }