示例#1
0
 void IFloatingPaneHost.RemoveViewModel(IViewModel iViewModel)
 {
     if (DocumentsSource.Contains(iViewModel))
     {
         DocumentsSource.Remove(iViewModel);
     }
     else if (ToolsSource.Contains(iViewModel))
     {
         ToolsSource.Remove(iViewModel);
     }
 }
示例#2
0
        void IUnpinnedToolHost.ViewModelRemoved(IViewModel iViewModel)
        {
            System.Diagnostics.Trace.Assert(ToolsSource.Contains(iViewModel));

            ToolsSource.Remove(iViewModel);
        }