Пример #1
0
 public ActionGroup()
 {
     this._data = new ActionsPaneItemCollectionData();
     this._items = new ActionsPaneItemCollection();
     base.Initialize(this._data, string.Empty, string.Empty, -1, null);
     this._items.Changed += new ActionsPaneItemCollection.ActionsPaneItemCollectionEventHandler(this.OnItemsChanged);
 }
Пример #2
0
 private SelectionData()
 {
     this._id = -1;
     this._uniqueNodeTypes = new Guid[0];
     this._sharedData = new WritableSharedData();
     this._description = string.Empty;
     this._actionsPaneItems = new ActionsPaneItemCollection();
     this._actionsPaneHelpItems = new ActionsPaneItemCollection();
     this._pasteTargetInfo = new PasteTargetInfo();
 }
Пример #3
0
 public ActionGroup(string displayName, string description, int imageIndex, object tag)
 {
     this._data = new ActionsPaneItemCollectionData();
     this._items = new ActionsPaneItemCollection();
     if (description == null)
     {
         throw Microsoft.ManagementConsole.Internal.Utility.CreateArgumentException("description", Microsoft.ManagementConsole.Internal.Strings.ArgumentExceptionNullValue, new object[0]);
     }
     Microsoft.ManagementConsole.Internal.Utility.CheckStringNullOrEmpty(displayName, "displayName", true);
     base.Initialize(this._data, displayName, description, imageIndex, tag);
     this._items.Changed += new ActionsPaneItemCollection.ActionsPaneItemCollectionEventHandler(this.OnItemsChanged);
 }
Пример #4
0
 internal SelectionData(View view)
 {
     this._id = -1;
     this._uniqueNodeTypes = new Guid[0];
     this._sharedData = new WritableSharedData();
     this._description = string.Empty;
     this._actionsPaneItems = new ActionsPaneItemCollection();
     this._actionsPaneHelpItems = new ActionsPaneItemCollection();
     this._pasteTargetInfo = new PasteTargetInfo();
     if (view == null)
     {
         throw new ArgumentNullException("view");
     }
     this._view = view;
     this._sharedData.Changed += new WritableSharedDataItem.SharedDataChangedEventHandler(this.OnSharedDataChanged);
     this._actionsPaneItems.Changed += new ActionsPaneItemCollection.ActionsPaneItemCollectionEventHandler(this.OnActionsPaneItemsChanged);
     this._actionsPaneHelpItems.Changed += new ActionsPaneItemCollection.ActionsPaneItemCollectionEventHandler(this.OnActionsPaneHelpItemsChanged);
 }