Beispiel #1
0
        public void ImagePortletNew()
        {
            var item = new ImagePortlet
            {
                Id     = Guid.NewGuid(),
                DataId = new Guid(System.Web.HttpContext.Current.Session["ImagePortletDataId"].ToString())
            };

            item.Order = ImagePortlet.GetImageOrderMax(item.DataId) + 1;
            System.Web.HttpContext.Current.Session["ImagePortletArgs"] = new ImagePortletArgs(item, false);
        }
Beispiel #2
0
 public ImagePortletArgs(ImagePortlet imagePortlet, bool isEdit)
 {
     _imagePortlet = imagePortlet;
     _isEdit       = isEdit;
 }