Esempio n. 1
0
 internal ViewDescription(Type baseViewType, Microsoft.ManagementConsole.Internal.ViewDescriptionData viewDescriptionData)
 {
     if (baseViewType == null)
     {
         throw new ArgumentNullException("baseViewType");
     }
     if (!baseViewType.IsSubclassOf(typeof(View)))
     {
         throw new ArgumentException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.ViewDescriptionInvalidType), "baseViewType");
     }
     this._baseViewType = this._viewType = baseViewType;
     if (viewDescriptionData == null)
     {
         throw new ArgumentNullException("viewDescriptionData");
     }
     this._viewDescriptionData = viewDescriptionData;
 }
Esempio n. 2
0
 private ViewDescriptionData(ViewDescriptionData viewDescriptionData)
 {
     this._displayName = string.Empty;
     this._languageIndependentName = string.Empty;
 }
 internal void Synchronize()
 {
     NamespaceSnapInBase snapInInstance = SnapInBase.SnapInInstance as NamespaceSnapInBase;
     if ((snapInInstance != null) && (snapInInstance.SnapInPlatform != null))
     {
         ViewDescriptionData[] viewDescriptionData = new ViewDescriptionData[base.Count];
         for (int i = 0; i < base.Count; i++)
         {
             viewDescriptionData[i] = this[i].ViewDescriptionData;
         }
         this._data.SetViewDescriptions(viewDescriptionData);
         SetViewSetDataCommand command = new SetViewSetDataCommand();
         command.ViewSet = this._data;
         snapInInstance.SnapInPlatform.ProcessCommand(command);
     }
 }
Esempio n. 4
0
 public void SetViewDescriptions(ViewDescriptionData[] viewDescriptionData)
 {
     this._viewDescriptionDatas = viewDescriptionData;
 }
Esempio n. 5
0
 public ViewSetData(ViewDescriptionData[] viewDescriptionData)
 {
     this._defaultIndex = -1;
     this._viewDescriptionDatas = viewDescriptionData;
 }