public void AddGroup() { string name = "Group" + UiProcessBatch.Count + 1; ProcessItem newGroup = new ProcessItem() { Name = name }; UiProcessBatch.Add(newGroup); CurrentGroup = newGroup; Samples.Clear(); }
public void AddGroup() { ObservableCollection <ProcessItem> seq = new ObservableCollection <ProcessItem>(); CurrentGroup = seq; ProcessItem item = new IdNamePairProcessItem(); item.Name = "group" + (UiProcessBatch.Count + 1).ToString(); item.Children = seq; item.CrtDepthLevel = 1; UiProcessBatch.Add(item); }