Better NameExists code. Checks for all names in the region.

Fixed the check box test.
This commit is contained in:
Lars Brubaker 2015-09-21 12:09:19 -07:00
parent e61cade31a
commit fbb5f7eabd
2 changed files with 4 additions and 3 deletions

View file

@ -186,9 +186,12 @@ namespace MatterHackers.MatterControl.PrintLibrary
mainContainer.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
mainContainer.VAnchor = VAnchor.ParentBottomTop;
{
partLabel = new TextWidget(this.ItemName.Replace('_', ' '), pointSize: 14);
GuiWidget primaryContainer = new GuiWidget();
primaryContainer.HAnchor = HAnchor.ParentLeftRight;
primaryContainer.VAnchor = VAnchor.ParentBottomTop;
primaryContainer.Name = "Row Item " + partLabel.Text;
FlowLayoutWidget primaryFlow = new FlowLayoutWidget(FlowDirection.LeftToRight);
primaryFlow.HAnchor = HAnchor.ParentLeftRight;
@ -211,8 +214,6 @@ namespace MatterHackers.MatterControl.PrintLibrary
middleColumn.VAnchor = Agg.UI.VAnchor.ParentBottomTop;
middleColumn.Margin = new BorderDouble(10, 6);
{
partLabel = new TextWidget(this.ItemName.Replace('_', ' '), pointSize: 14);
partLabel.Name = "Row Item " + partLabel.Text;
partLabel.TextColor = WidgetTextColor;
partLabel.MinimumSize = new Vector2(1, 18);
partLabel.VAnchor = VAnchor.ParentCenter;

@ -1 +1 @@
Subproject commit a2ef23908448853d70323dc7a075d2db211acd91
Subproject commit 9dd836b15f22a106f02659a39a060d414c355dac