public void Update(object selectionObject, bool multiSelection, Guid[] uniqueNodeTypes, WritableSharedData sharedData)
{
this.ThrowIfViewShutdown("Update");
MmcListView view = this._view as MmcListView;
if (view != null)
{
if (!view.SnapInProcessingSelectionChange)
{
throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.SelectionDataUpdateInvalidFromList));
}
if ((multiSelection && (view.SelectedNodes.Count < 2)) || (!multiSelection && (view.SelectedNodes.Count != 1)))
{
throw new ArgumentException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.SelectionDataUpdateInvalidUpdate), "multiSelection");
}
}
if ((uniqueNodeTypes == null) || (uniqueNodeTypes.Length == 0))
{
uniqueNodeTypes = new Guid[] { Guid.Empty };
}
this.ChangeSelection(selectionObject, multiSelection ? Microsoft.ManagementConsole.Internal.SelectionCardinality.Multiple : Microsoft.ManagementConsole.Internal.SelectionCardinality.Single, uniqueNodeTypes, sharedData);
}