internal void Update(List <node> _nodes, designGraph _graph, GraphGUI _gui) { nodes = _nodes; graph = _graph; gui = _gui; nodeIcon = ((DisplayShape)firstNode.DisplayShape).icon; Update(); }
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) { }
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); }
private void OnThemeComponentUpdated(object sender, EventArgs e) { Size = ((IconThemeComponent)sender).IconSize; Color = ((IconThemeComponent)sender).IconColor; Shape = ((IconThemeComponent)sender).IconShape; }
protected IconBlockItem(IconSize size, IconColor color, IconShape shape) { Size = size; Color = color; Shape = shape; }