private string type; //CXP2, CXP3, URL .. /// <summary> /// Constructor for erase slide and erase deck messages. /// </summary> public WorkItem(BufferChunk bc, Byte oc) { Initialize(); this.bc = new BufferChunk(bc.Length); this.bc.Length = bc.Length; bc.CopyTo(this.bc, 0); this.oc = oc; }
/// <summary> /// Constructor for URL and CXP2 types /// </summary> public WorkItem(BufferChunk bc, Byte oc, int slideindex, Guid deckguid, string type) { Initialize(); this.bc = new BufferChunk(bc.Length); this.bc.Length = bc.Length; bc.CopyTo(this.bc, 0); this.oc = oc; this.slideindex = slideindex; this.deckguid = deckguid; this.type = type; }
/// <summary> /// Constructor for PageUpdate and ScrollLayer messages /// </summary> /// public WorkItem(BufferChunk bc, Byte oc, int slideindex, Guid deckguid) { Initialize(); this.bc = new BufferChunk(bc.Length); this.bc.Length = bc.Length; //PRI2: bc.CopyTo now verifies this.bc.length. Note that this is zero because it hasn't been set by the ctr. // how is this supposed to work? Need to make sure we do this correctly throughout the sln. bc.CopyTo(this.bc, 0); this.oc = oc; this.slideindex = slideindex; this.deckguid = deckguid; }