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);
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
        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);
        }
Пример #5
0
 /// <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);
 }
Пример #6
0
 public void UpdateGuidanceItem(GuidanceItem item, string content)
 {
     this.Invoke("UpdateGuidanceItem", new object[] {
                 item,
                 content});
 }
Пример #7
0
 /// <remarks/>
 public void UpdateGuidanceItemAsync(GuidanceItem item, string content)
 {
     this.UpdateGuidanceItemAsync(item, content, null);
 }
Пример #8
0
 /// <remarks/>
 public System.IAsyncResult BeginUpdateGuidanceItem(GuidanceItem item, string content, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("UpdateGuidanceItem", new object[] {
                 item,
                 content}, callback, asyncState);
 }
Пример #9
0
 /// <remarks/>
 public System.IAsyncResult BeginAddGuidanceItemsToView(string viewId, GuidanceItem[] items, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("AddGuidanceItemsToView", new object[] {
                 viewId,
                 items}, callback, asyncState);
 }
Пример #10
0
 /// <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);
 }
Пример #11
0
 /// <remarks/>
 public void AddGuidanceItemsToViewAsync(string viewId, GuidanceItem[] items)
 {
     this.AddGuidanceItemsToViewAsync(viewId, items, null);
 }
Пример #12
0
 public void AddGuidanceItemsToView(string viewId, GuidanceItem[] items)
 {
     this.Invoke("AddGuidanceItemsToView", new object[] {
                 viewId,
                 items});
 }