void IFloatingPaneHost.RemoveViewModel(IViewModel iViewModel) { if (DocumentsSource.Contains(iViewModel)) { DocumentsSource.Remove(iViewModel); } else if (ToolsSource.Contains(iViewModel)) { ToolsSource.Remove(iViewModel); } }
void IUnpinnedToolHost.ViewModelRemoved(IViewModel iViewModel) { System.Diagnostics.Trace.Assert(ToolsSource.Contains(iViewModel)); ToolsSource.Remove(iViewModel); }