Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 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);
     }
 }
Exemplo n.º 5
0
 internal void SetPageIdAndParentSheet(int id, PropertySheet sheet)
 {
     if (sheet == null)
     {
         throw new ArgumentNullException("sheet");
     }
     this._sheet = sheet;
     this._id = id;
 }