public static GuidanceItem newGuidanceItemObject(Guid id, string title, Guid guidanceType, Guid library, Guid creator, string creatorCaption, string content, string images, DateTime lastUpdate) { var guidanceItem = new GuidanceItem() { id =id.str(), title = title, guidanceType = guidanceType.str(), library = library.str(), creator = creator.str(), creatorCaption = creatorCaption, content = content, images = images, lastUpdate = lastUpdate }; return guidanceItem; }
public static GuidanceItem newGuidanceItemObject(Guid id, string title, Guid guidanceType, Guid library, Guid creator, string creatorCaption, string content, string images, DateTime lastUpdate) { var guidanceItem = new GuidanceItem { id = id.str(), title = title, guidanceType = guidanceType.str(), library = library.str(), creator = creator.str(), creatorCaption = creatorCaption, content = content, images = images, lastUpdate = lastUpdate }; return(guidanceItem); }
public GuidanceItem_V3(GuidanceItem guidanceItem) { guidanceItemId = guidanceItem.id.guid(); guidanceItemId_Original = guidanceItem.id_original.guid(); libraryId = guidanceItem.library.guid(); guidanceType = guidanceItem.guidanceType.guid(); creatorId = guidanceItem.creator.guid(); creatorCaption = guidanceItem.creatorCaption; title = guidanceItem.title; images = guidanceItem.images; // lastUpdate = guidanceItem.lastUpdate; delete = guidanceItem.delete; htmlContent = guidanceItem.content.sanitizeHtmlContent(); //use reflection to set these values foreach (var attribute in guidanceItem.AnyAttr) { this.prop(attribute.Name.lowerCaseFirstLetter(), attribute.Value); } }
public GuidanceItem_V3(GuidanceItem guidanceItem) { guidanceItemId = guidanceItem.id.guid(); guidanceItemId_Original = guidanceItem.id_original.guid(); libraryId = guidanceItem.library.guid(); guidanceType = guidanceItem.guidanceType.guid(); creatorId = guidanceItem.creator.guid(); creatorCaption = guidanceItem.creatorCaption; title = guidanceItem.title; images = guidanceItem.images; // lastUpdate = guidanceItem.lastUpdate; delete = guidanceItem.delete; htmlContent = guidanceItem.content.sanitizeHtmlContent(); //use reflection to set these values foreach(var attribute in guidanceItem.AnyAttr) this.prop(attribute.Name.lowerCaseFirstLetter(), attribute.Value); }
/// <remarks/> public void UpdateGuidanceItemAsync(GuidanceItem item, string content, object userState) { if ((this.UpdateGuidanceItemOperationCompleted == null)) { this.UpdateGuidanceItemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateGuidanceItemOperationCompleted); } this.InvokeAsync("UpdateGuidanceItem", new object[] { item, content}, this.UpdateGuidanceItemOperationCompleted, userState); }
public void UpdateGuidanceItem(GuidanceItem item, string content) { this.Invoke("UpdateGuidanceItem", new object[] { item, content}); }
/// <remarks/> public void UpdateGuidanceItemAsync(GuidanceItem item, string content) { this.UpdateGuidanceItemAsync(item, content, null); }
/// <remarks/> public System.IAsyncResult BeginUpdateGuidanceItem(GuidanceItem item, string content, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("UpdateGuidanceItem", new object[] { item, content}, callback, asyncState); }
/// <remarks/> public System.IAsyncResult BeginAddGuidanceItemsToView(string viewId, GuidanceItem[] items, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddGuidanceItemsToView", new object[] { viewId, items}, callback, asyncState); }
/// <remarks/> public void AddGuidanceItemsToViewAsync(string viewId, GuidanceItem[] items, object userState) { if ((this.AddGuidanceItemsToViewOperationCompleted == null)) { this.AddGuidanceItemsToViewOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddGuidanceItemsToViewOperationCompleted); } this.InvokeAsync("AddGuidanceItemsToView", new object[] { viewId, items}, this.AddGuidanceItemsToViewOperationCompleted, userState); }
/// <remarks/> public void AddGuidanceItemsToViewAsync(string viewId, GuidanceItem[] items) { this.AddGuidanceItemsToViewAsync(viewId, items, null); }
public void AddGuidanceItemsToView(string viewId, GuidanceItem[] items) { this.Invoke("AddGuidanceItemsToView", new object[] { viewId, items}); }