public Result(TypeOfDepth depth, String attributeName, String value) { InitializeComponent(); if (depth != TypeOfDepth.Post) { dataGrid1.Visibility = System.Windows.Visibility.Hidden; label1.Visibility = System.Windows.Visibility.Hidden; textBlock1.Visibility = System.Windows.Visibility.Hidden; } dataGrid1.AutoGenerateColumns = true; /* DataGridTextColumn dgtc = new DataGridTextColumn(); dgtc.Header = "Attribute"; dataGrid1.Columns.Add(dgtc); DataGridTextColumn dgtc2 = new DataGridTextColumn(); dgtc2.Header = "Value"; dataGrid1.Columns.Add(dgtc2); */ this.depth = depth; this.attributeName = attributeName; this.value = value; this.searcher=new Searcher(); this.resultList = new List<dynamic>(); s = searcher; list = resultList; tree = treeView1; }
public SelectAttributesWindow(string depth) { this.depth = depth; InitializeComponent(); List<String> attributes = new List<String>(); attributes.Add("Producer"); listBox1.ItemsSource = attributes; this.searcher = new Searcher(); }