public void RemoveSheetSelection() { foreach (var s in selectedSheets.ToList()) { ViewHosts.Remove(s); } NotifyOfPropertyChange(() => GoLabel); NotifyOfPropertyChange(() => GoLabelIsEnabled); }
public void RemoveSelectedViews() { foreach (var s in selectedViews.ToList()) { ChildViews.Remove(s); } if (SelectedViewHost.Type == ViewHostType.Model) { if (SelectedViewHost.ChildViews.Count == 0) { ViewHosts.Remove(SelectedViewHost); } else { SelectedViewHost.Title = "<" + SelectedViewHost.ChildViews.Count.ToString() + " Independent Views>"; } } }