// --------------------- Functionality --------------------- private void ShowSelectors() { // initialize lists of interface-objects _listOfAxisComboBoxes = new List <ComboBox>(); _listOfLevelComboBoxes = new List <ComboBox>(); _listOfFilterComboBoxes = new List <ListBox>(); _listOfSelectAllButtons = new List <Button>(); _listOfSelectNoneButtons = new List <Button>(); _listOfQuicksearchTextfields = new List <TextBox>(); _listOfQuicksearchFirstSearch = new List <Boolean>(); DimensionList.Children.Clear(); // create and view Grids, Separators and Headings DimensionList.Children.Add(InterfaceHelpers.CreateTextBlock("DIMENSIONS", "Heading2", 0, 0, 0, 8)); DimensionList.Children.Add(CreateSelectorGrid(1)); DimensionList.Children.Add(InterfaceHelpers.CreateSeparator()); DimensionList.Children.Add(CreateSelectorGrid(2)); DimensionList.Children.Add(InterfaceHelpers.CreateSeparator()); DimensionList.Children.Add(InterfaceHelpers.CreateTextBlock("FILTERS", "Heading2", 0, 0, 0, 8)); for (var filternumber = 3; filternumber < DBWorker.MetaData.ListOfFactDimensions.Count; filternumber++) { DimensionList.Children.Add(CreateSelectorGrid(filternumber)); DimensionList.Children.Add(InterfaceHelpers.CreateSeparator()); } }
public void CreateSeparatorTest() { string name = "TestName"; string style = string.Empty; Separator expected = new Separator { Name = name, Margin = new Thickness(10, 10, 10, 10), Style = new Style() }; Separator actual; actual = InterfaceHelpers.CreateSeparator(name, style); Assert.IsTrue(actual.Name == expected.Name && actual.Margin == expected.Margin); }