private void AddPropsToGUI(TreeViewItem tvi) { tvi.Items.Clear(); tvi.IsExpanded = true; foreach (PropRowData prd in hssd.PropRowsData) { PropRow pr = new PropRow(prd, tvi); tvi.Items.Add(pr); } }
private void GetHostSysSimDataFromTree(TreeViewItem tvi) { foreach (Object ob in tvi.Items) { if (ob.GetType().Equals(typeof(PropRow))) { PropRow pr = (PropRow)ob; PropRowData prd = pr.GetPropRowData(); hssd.AddPropRowData(prd); } } }
private void AddNewObjectRow_Click(object sender, RoutedEventArgs e) { PropRow pr = new PropRow(new PropRowData(), tviParent); tviParent.Items.Insert(tviParent.Items.Count - 1, pr); }