Ejemplo n.º 1
0
        public static CatalogPage Parse(DataRow row)
        {
            try
            {
                CatalogPage page = new CatalogPage();
                page.mID         = (uint)row["id"];
                page.mParentID   = (uint)row["parentid"];
                page.mTreeID     = (uint)row["treeid"];
                page.mVisible    = ((byte)row["visible"] == 1);
                page.mComingSoon = ((byte)row["comingsoon"] == 1);
                page.mName       = (string)row["name"];
                page.mIconColor  = (byte)row["icon_color"];
                page.mIconImage  = (byte)row["icon_image"];

                return(page);
            }
            catch (Exception ex)
            {
                IonEnvironment.GetLog().WriteUnhandledExceptionError("CatalogPage.Parse", ex);
            }

            return(null);
        }
Ejemplo n.º 2
0
        public static CatalogPage Parse(DataRow row)
        {
            try
            {
                CatalogPage page = new CatalogPage();
                page.mID = (uint)row["id"];
                page.mParentID = (uint)row["parentid"];
                page.mTreeID = (uint)row["treeid"];
                page.mVisible = ((byte)row["visible"] == 1);
                page.mComingSoon = ((byte)row["comingsoon"] == 1);
                page.mName = (string)row["name"];
                page.mIconColor = (byte)row["icon_color"];
                page.mIconImage = (byte)row["icon_image"];

                return page;
            }
            catch (Exception ex)
            {
                IonEnvironment.GetLog().WriteUnhandledExceptionError("CatalogPage.Parse", ex);
            }

            return null;
        }