internal override void ProcessRequest(Request request) { if (request.RequestInfo is ExtensionPagesRequestInfo) { ExtensionPagesRequestInfo requestInfo = request.RequestInfo as ExtensionPagesRequestInfo; PropertyPageCollection propertyPageCollection = new PropertyPageCollection(); IRequestStatus requestStatus = request.RequestStatus; SyncStatus status2 = new SyncStatus(requestStatus); try { this.OnAddPropertyPages(propertyPageCollection); PropertyPagesResponse response = new PropertyPagesResponse(); response.SetPropertyPages(propertyPageCollection.ToPropertyPageInfoArray()); requestStatus.ProcessResponse(response); } finally { status2.Close(); } this._extensionPropertySheet = SnapInBase.SnapInInstance.SheetManager.CreatePropertySheet(requestInfo.SheetId, propertyPageCollection, null); } else { base.ProcessRequest(request); } }
internal PropertySheet CreatePropertySheet(int sheetId, PropertyPageCollection pageCollection, AuxiliarySelectionData auxiliarySelectionData) { if (pageCollection == null) { throw new ArgumentNullException("pageCollection"); } PropertySheet sheet = new PropertySheet(this, sheetId, auxiliarySelectionData); sheet.AddPropertyPages(pageCollection); this.AddPropertySheet(sheet); return sheet; }
private void AddPropertySheet(PropertySheet sheet) { if (sheet == null) { throw new ArgumentNullException("sheet"); } this._sheets.Add(sheet.Id, sheet); AuxiliarySelectionData auxiliarySelectionData = sheet.AuxiliarySelectionData; if (auxiliarySelectionData != null) { this.ActiveViewPropertySheetSelectionDatas[auxiliarySelectionData.Id] = auxiliarySelectionData; } }
public void RemovePropertySheet(PropertySheet sheet) { if (sheet == null) { throw new ArgumentNullException("sheet"); } this._sheets.Remove(sheet.Id); AuxiliarySelectionData auxiliarySelectionData = sheet.AuxiliarySelectionData; if (auxiliarySelectionData != null) { this.ActiveViewPropertySheetSelectionDatas.Remove(auxiliarySelectionData.Id); } }
internal void SetPageIdAndParentSheet(int id, PropertySheet sheet) { if (sheet == null) { throw new ArgumentNullException("sheet"); } this._sheet = sheet; this._id = id; }