/// <summary> /// Supplies the page with the object(s) to be edited. /// </summary> /// <param name="objects">The object(s) this page applies to.</param> void IComPropertyPage.SetObjects(ISet objects) { if (objects == null || objects.Count != 1) { return; } // Store the provided object class in a member variable. objects.Reset(); object providedObject = objects.Next(); objectClass = providedObject as IObjectClass; if (objectClass != null) { // Get the object class' extension. timestampClassExtension = objectClass.Extension as TimestampClassExtension; } }
/// <summary> /// Supplies the page with the object(s) to be edited. /// </summary> /// <param name="objects">The object(s) this page applies to.</param> void IComPropertyPage.SetObjects(ISet objects) { if (objects == null || objects.Count != 1) return; // Store the provided object class in a member variable. objects.Reset(); object providedObject = objects.Next(); objectClass = providedObject as IObjectClass; if (objectClass != null) { // Get the object class' extension. timestampClassExtension = objectClass.Extension as TimestampClassExtension; } }