public ProcessingViewModel() { WorkSpace = new AllConfigsViewModel(); SingleConfigViewModel scvm = new SingleConfigViewModel(null); WorkSpace.Configs.Add(scvm); }
void OnWorkspaceRequestClose(object sender, EventArgs e) { SingleConfigViewModel workspace = sender as SingleConfigViewModel; workspace.Dispose(); this.Configs.Remove(workspace); }
public AllConfigsViewModel(List <ISessionColumnCollection> Collections) { foreach (ISessionColumnCollection collection in Collections) { SingleConfigViewModel sccv = new SingleConfigViewModel(collection); if (!Configs.Contains(sccv)) { Configs.Add(sccv); } } }