public ControlHighlightManager(Control backgroundControl, Border borderControl, Control foregroundControl, BrushGroup brushes) { this.BackgroundControl = backgroundControl; this.ForegroundControl = foregroundControl; this.Brushes = brushes; this.BorderControl = new Tuple <Control, Border, bool>(null, borderControl, false); }
private void groupList_DoubleClick(object sender, EventArgs e) { if (groupList.SelectedItems.Count > 0) { BrushGroup toSwitch = Manager.Project.BrushGroups[groupList.SelectedItems[0].Index]; if (toSwitch != currentGroup) { currentGroup = toSwitch; } } renderObjectList(); ensureButtonsVisible(); }
public BrushGroups() { InitializeComponent(); Manager.SetSpacing(objectList, 48, 48); brushGroupsObjectTree.ImageList = Manager.MainWindow.imageListFolders; objectList.SmallImageList = objectList.LargeImageList = Manager.MainWindow.imageListObjects; Manager.Project.renderItemsTree(brushGroupsObjectTree, "objects"); brushGroupsObjectTree.Nodes[0].ExpandAll(); //brushGroupsObjectTree.Nodes[0].Nodes[0].Expand(); /*groupList.Focus(); * groupList.Items[0].Selected = true; * groupList_DoubleClick(groupList, new EventArgs());*/ currentGroup = Manager.Project.BrushGroups[0]; renderLayerList(); }