SetRemovedClipboardFormatIds() 공개 메소드

public SetRemovedClipboardFormatIds ( string removedClipboardFormatIds ) : void
removedClipboardFormatIds string
리턴 void
 private void ReadNextInitialSharedData(SharedDataObjectUpdate obj)
 {
     int num = this._source.Get_InitialSharedData_AddedFormats_Count()[this._currentIndex];
     DataFormatConfiguration[] addedFormats = null;
     if (num >= 0)
     {
         addedFormats = new DataFormatConfiguration[num];
     }
     int index = 0;
     for (index = 0; index < num; index++)
     {
         addedFormats[index] = this.ReadNextAddedFormats();
         this._InitialSharedData_AddedFormats_Offset++;
     }
     obj.SetAddedFormats(addedFormats);
     int num3 = this._source.Get_InitialSharedData_ChangedFormats_Count()[this._currentIndex];
     DataFormatConfiguration[] changedFormats = null;
     if (num3 >= 0)
     {
         changedFormats = new DataFormatConfiguration[num3];
     }
     int num4 = 0;
     for (num4 = 0; num4 < num3; num4++)
     {
         changedFormats[num4] = this.ReadNextChangedFormats();
         this._InitialSharedData_ChangedFormats_Offset++;
     }
     obj.SetChangedFormats(changedFormats);
     int num5 = this._source.Get_InitialSharedData_UpdatedData_Count()[this._currentIndex];
     ClipboardData[] updatedData = null;
     if (num5 >= 0)
     {
         updatedData = new ClipboardData[num5];
     }
     int num6 = 0;
     for (num6 = 0; num6 < num5; num6++)
     {
         updatedData[num6] = this.ReadNextUpdatedData();
         this._InitialSharedData_UpdatedData_Offset++;
     }
     obj.SetUpdatedData(updatedData);
     int num7 = this._source.Get_InitialSharedData_RemovedClipboardFormatIds_Count()[this._currentIndex];
     string[] removedClipboardFormatIds = null;
     if (num7 >= 0)
     {
         removedClipboardFormatIds = new string[num7];
     }
     int num8 = 0;
     for (num8 = 0; num8 < num7; num8++)
     {
         removedClipboardFormatIds[num8] = this._strings.ReadString();
         this._InitialSharedData_RemovedClipboardFormatIds_Offset++;
     }
     obj.SetRemovedClipboardFormatIds(removedClipboardFormatIds);
 }
예제 #2
0
파일: View.cs 프로젝트: SiteView/ECC8.13
 private SharedDataObjectUpdate CreateSharedDataObjectUpdate(WritableSharedDataItem[] addedItems, WritableSharedDataItem[] modifiedItems, WritableSharedDataItem[] removedItems)
 {
     SharedDataObjectUpdate update = new SharedDataObjectUpdate();
     ArrayList dataUpdate = new ArrayList();
     ArrayList formats = new ArrayList();
     ArrayList list3 = new ArrayList();
     this.ParseSharedDataItems(addedItems, formats, dataUpdate);
     update.SetAddedFormats((DataFormatConfiguration[]) formats.ToArray(typeof(DataFormatConfiguration)));
     this.ParseSharedDataItems(modifiedItems, list3, dataUpdate);
     update.SetChangedFormats((DataFormatConfiguration[]) list3.ToArray(typeof(DataFormatConfiguration)));
     update.SetUpdatedData((ClipboardData[]) dataUpdate.ToArray(typeof(ClipboardData)));
     ArrayList list4 = new ArrayList();
     foreach (WritableSharedDataItem item in removedItems)
     {
         list4.Add(item.ClipboardFormatId);
     }
     update.SetRemovedClipboardFormatIds((string[]) list4.ToArray(typeof(string)));
     return update;
 }