internal void ProcessNotificationMessage(PropertyPageNotification pageNotif)
{
PropertyPage propertyPage = this.GetPropertyPage(pageNotif.PageId);
if (pageNotif is InitializePropertyPageNotification)
{
this._initPageCount++;
propertyPage.InternalInitialize();
}
else if (pageNotif is DestroyPropertyPageNotification)
{
this._initPageCount--;
propertyPage.InternalDestroy();
this.RemovePropertyPage(propertyPage);
}
else if (pageNotif is SetActivePropertyPageNotification)
{
propertyPage.InternalSetActive();
}
else if (pageNotif is ResetPropertyPageNotification)
{
propertyPage.OnCancel();
}
else
{
if (!(pageNotif is ProcessMnemonicNotification))
{
throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.PropertySheetUnknownMessage));
}
propertyPage.ProcessMnemonic(((ProcessMnemonicNotification) pageNotif).CharCode);
}
}