Ejemplo n.º 1
0
 public void SetInsertionLocation(ActionsInsertionLocation[] value)
 {
     this._insertionLocation = value;
 }
 private ActionsPaneRootData ReadNextActions()
 {
     ActionsPaneRootData data = new ActionsPaneRootData();
     int length = this._source.Get_Actions_Id_Count()[this._currentIndex];
     int[] destinationArray = null;
     if (length >= 0)
     {
         destinationArray = new int[length];
         Array.Copy(this._source.Get_Actions_Id(), this._Actions_Id_Offset, destinationArray, 0, length);
         this._Actions_Id_Offset += length;
     }
     data.SetId(destinationArray);
     int num2 = this._source.Get_Actions_ItemType_Count()[this._currentIndex];
     ActionsPaneRootItemType[] typeArray = null;
     if (num2 >= 0)
     {
         typeArray = new ActionsPaneRootItemType[num2];
     }
     int index = 0;
     for (index = 0; index < num2; index++)
     {
         typeArray[index] = (ActionsPaneRootItemType) this._source.Get_Actions_ItemType()[this._Actions_ItemType_Offset];
         this._Actions_ItemType_Offset++;
     }
     data.SetItemType(typeArray);
     int num4 = this._source.Get_Actions_InsertionLocation_Count()[this._currentIndex];
     ActionsInsertionLocation[] locationArray = null;
     if (num4 >= 0)
     {
         locationArray = new ActionsInsertionLocation[num4];
     }
     int num5 = 0;
     for (num5 = 0; num5 < num4; num5++)
     {
         locationArray[num5] = (ActionsInsertionLocation) this._source.Get_Actions_InsertionLocation()[this._Actions_InsertionLocation_Offset];
         this._Actions_InsertionLocation_Offset++;
     }
     data.SetInsertionLocation(locationArray);
     int num6 = this._source.Get_Actions_DisplayName_Count()[this._currentIndex];
     string[] strArray = null;
     if (num6 >= 0)
     {
         strArray = new string[num6];
     }
     int num7 = 0;
     for (num7 = 0; num7 < num6; num7++)
     {
         strArray[num7] = this._strings.ReadString();
         this._Actions_DisplayName_Offset++;
     }
     data.SetDisplayName(strArray);
     int num8 = this._source.Get_Actions_MnemonicDisplayName_Count()[this._currentIndex];
     string[] strArray2 = null;
     if (num8 >= 0)
     {
         strArray2 = new string[num8];
     }
     int num9 = 0;
     for (num9 = 0; num9 < num8; num9++)
     {
         strArray2[num9] = this._strings.ReadString();
         this._Actions_MnemonicDisplayName_Offset++;
     }
     data.SetMnemonicDisplayName(strArray2);
     int num10 = this._source.Get_Actions_Description_Count()[this._currentIndex];
     string[] strArray3 = null;
     if (num10 >= 0)
     {
         strArray3 = new string[num10];
     }
     int num11 = 0;
     for (num11 = 0; num11 < num10; num11++)
     {
         strArray3[num11] = this._strings.ReadString();
         this._Actions_Description_Offset++;
     }
     data.SetDescription(strArray3);
     int num12 = this._source.Get_Actions_LanguageIndependentName_Count()[this._currentIndex];
     string[] strArray4 = null;
     if (num12 >= 0)
     {
         strArray4 = new string[num12];
     }
     int num13 = 0;
     for (num13 = 0; num13 < num12; num13++)
     {
         strArray4[num13] = this._strings.ReadString();
         this._Actions_LanguageIndependentName_Offset++;
     }
     data.SetLanguageIndependentName(strArray4);
     int num14 = this._source.Get_Actions_ImageIndex_Count()[this._currentIndex];
     int[] numArray2 = null;
     if (num14 >= 0)
     {
         numArray2 = new int[num14];
         Array.Copy(this._source.Get_Actions_ImageIndex(), this._Actions_ImageIndex_Offset, numArray2, 0, num14);
         this._Actions_ImageIndex_Offset += num14;
     }
     data.SetImageIndex(numArray2);
     int num15 = this._source.Get_Actions_State_Count()[this._currentIndex];
     ActionStates[] statesArray = null;
     if (num15 >= 0)
     {
         statesArray = new ActionStates[num15];
     }
     int num16 = 0;
     for (num16 = 0; num16 < num15; num16++)
     {
         statesArray[num16] = (ActionStates) this._source.Get_Actions_State()[this._Actions_State_Offset];
         this._Actions_State_Offset++;
     }
     data.SetState(statesArray);
     int num17 = this._source.Get_Actions_ExecuteSync_Count()[this._currentIndex];
     bool[] flagArray = null;
     if (num17 >= 0)
     {
         flagArray = new bool[num17];
         Array.Copy(this._source.Get_Actions_ExecuteSync(), this._Actions_ExecuteSync_Offset, flagArray, 0, num17);
         this._Actions_ExecuteSync_Offset += num17;
     }
     data.SetExecuteSync(flagArray);
     int num18 = this._source.Get_Actions_RenderAsRegion_Count()[this._currentIndex];
     bool[] flagArray2 = null;
     if (num18 >= 0)
     {
         flagArray2 = new bool[num18];
         Array.Copy(this._source.Get_Actions_RenderAsRegion(), this._Actions_RenderAsRegion_Offset, flagArray2, 0, num18);
         this._Actions_RenderAsRegion_Offset += num18;
     }
     data.SetRenderAsRegion(flagArray2);
     int num19 = this._source.Get_Actions_ItemsCount_Count()[this._currentIndex];
     int[] numArray3 = null;
     if (num19 >= 0)
     {
         numArray3 = new int[num19];
         Array.Copy(this._source.Get_Actions_ItemsCount(), this._Actions_ItemsCount_Offset, numArray3, 0, num19);
         this._Actions_ItemsCount_Offset += num19;
     }
     data.SetItemsCount(numArray3);
     return data;
 }