Exemplo n.º 1
0
 private void OnSubItemsChanged(object source)
 {
     NodeSubItemData[] subItems = new NodeSubItemData[this.SubItemDisplayNames.Count];
     int num = 0;
     foreach (string str in this.SubItemDisplayNames)
     {
         NodeSubItemData data = new NodeSubItemData();
         data.DisplayName = str;
         subItems[num++] = data;
     }
     this.Data.SetSubItems(subItems);
     this.Notify();
 }
Exemplo n.º 2
0
 public void SetSubItems(NodeSubItemData[] subItems)
 {
     this._subItems = subItems;
 }
 private ScopeNodeData ReadNextNodeData()
 {
     ScopeNodeData data = new ScopeNodeData();
     data.NodeType = this._source.Get_NodeData_NodeType()[this._source.Get_NodeData_NodeType_Id()[this._currentIndex]];
     data.SelectedImageIndex = this._source.Get_NodeData_SelectedImageIndex()[this._currentIndex];
     data.HideExpandIcon = this._source.Get_NodeData_HideExpandIcon()[this._currentIndex];
     data.SendActivation = this._source.Get_NodeData_SendActivation()[this._currentIndex];
     data.SendDeactivation = this._source.Get_NodeData_SendDeactivation()[this._currentIndex];
     data.ViewSetId = this._source.Get_NodeData_ViewSetId()[this._currentIndex];
     data.EnabledVerbs = (StandardVerbs) this._source.Get_NodeData_EnabledVerbs()[this._currentIndex];
     data.LanguageIndependentName = this._strings.ReadString();
     data.HelpTopic = this._strings.ReadString();
     this.ReadNextPasteTargetInfo(data.PasteTargetInfo);
     data.Id = this._source.Get_NodeData_Id()[this._currentIndex];
     data.ImageIndex = this._source.Get_NodeData_ImageIndex()[this._currentIndex];
     data.DisplayName = this._strings.ReadString();
     int num = this._source.Get_NodeData_SubItems_Count()[this._currentIndex];
     NodeSubItemData[] subItems = null;
     if (num >= 0)
     {
         subItems = new NodeSubItemData[num];
     }
     int index = 0;
     for (index = 0; index < num; index++)
     {
         subItems[index] = this.ReadNextSubItems();
         this._NodeData_SubItems_Offset++;
     }
     data.SetSubItems(subItems);
     return data;
 }
 private NodeSubItemData ReadNextSubItems()
 {
     NodeSubItemData data = new NodeSubItemData();
     data.DisplayName = this._strings.ReadString();
     return data;
 }
 private void WriteNextSubItems(NodeSubItemData obj)
 {
     this.WriteString(obj.DisplayName);
 }