Esempio n. 1
0
 private void SetCustomBackground(ComponentController paComponentController, String paCustomWallpaper)
 {
     paComponentController.AddStyle(CSSStyle.Background, paCustomWallpaper);
     paComponentController.AddStyle("-webkit-background-size", "cover");
     paComponentController.AddStyle("-moz-background-size", "cover");
     paComponentController.AddStyle("-o-background-size", "cover");
     paComponentController.AddStyle("background-size", "cover");
 }
Esempio n. 2
0
 protected void RenderDesignMode(ComponentController paComponentController)
 {
     paComponentController.AddStyle(CSSStyle.Border, "2px Solid Black");
     paComponentController.AddStyle(CSSStyle.Height, this.Height.ToString());
     paComponentController.AddStyle(CSSStyle.Width, this.Width.ToString());
     paComponentController.RenderBeginTag(HtmlTag.Div);
     paComponentController.Write(this.GetType().ToString());
     paComponentController.RenderEndTag();
 }
Esempio n. 3
0
 protected void RenderDesignMode(ComponentController paComponentController)
 {
     paComponentController.AddStyle(CSSStyle.Border, "2px Solid Black");
     paComponentController.AddStyle(CSSStyle.Width, "100px");
     paComponentController.AddStyle(CSSStyle.Height, "100px");
     paComponentController.RenderBeginTag(HtmlTag.Div);
     paComponentController.Write("Design Mode");
     paComponentController.RenderEndTag();
 }
Esempio n. 4
0
        protected virtual void RenderDesignMode(ComponentController paComponentController)
        {
            this.Width  = new Unit(ctDSNWidth);
            this.Height = new Unit(ctDSNHeight);

            paComponentController.AddStyle(CSSStyle.Border, "2px Solid Black");
            paComponentController.AddStyle(CSSStyle.Overflow, "hidden");
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write("Google Map");
            paComponentController.RenderEndTag();
        }
Esempio n. 5
0
        protected void RenderElementContainer(ComponentController paComponentController)
        {
            WidgetRenderingManager lcWidgetRenderingManager;

            lcWidgetRenderingManager = new WidgetRenderingManager(this, clFormInfoManager, paComponentController);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSElementContainer);
            paComponentController.AddStyle(CSSStyle.Height, clFormInfoManager.ActiveRow.ContainerHeight.ToString() + ConfigClass.GetInstance().StandardYUnit);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            lcWidgetRenderingManager.RenderWidget();
            paComponentController.RenderEndTag();
        }
Esempio n. 6
0
        protected void AddFormStyle(ComponentController paComponentController)
        {
            String lcFormCSSClass;
            String lcCustomWallPaper;

            lcFormCSSClass = String.IsNullOrWhiteSpace(clFormInfoManager.ActiveRow.FormCSSClass) ? clFormInfoManager.ActiveRow.RenderMode : clFormInfoManager.ActiveRow.FormCSSClass;

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPanel + " " + lcFormCSSClass);
            paComponentController.AddElementType(ComponentController.ElementType.Form);

            if (ApplicationFrame.GetInstance().ActiveSubscription.IsDemoMode())
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DemoMode, "true");
            }

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_FormProtocolList, General.Base64Encode(clSettingManager.FormProtocolListStr));
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ServiceRequestToken, ApplicationFrame.GetInstance().ActiveServiceRequestToken);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_FormStack, ApplicationFrame.GetInstance().FormStack);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_FormName, clFormInfoManager.ActiveRow.FormName);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_EncodedFormName, clFormInfoManager.EncodedFormName);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataGroupName, clFormInfoManager.ActiveRow.DataGroup);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LandingPage, General.Base64Encode(ApplicationFrame.GetInstance().ActiveSubscription.GetLandingPage()));
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Language, ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage.ActiveRow.Language.ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LocalNumberMode, ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting.LocalNumberMode.ToString().ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LocalDigits, ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage.LocalDigits);
            paComponentController.AddStyle(CSSStyle.Width, clFormInfoManager.ActiveRow.FormWidth.ToString() + ConfigClass.GetInstance().StandardXUnit);
            paComponentController.AddStyle(CSSStyle.Height, clFormInfoManager.ActiveRow.FormHeight.ToString() + ConfigClass.GetInstance().StandardYUnit);

            if ((lcCustomWallPaper = ApplicationFrame.GetInstance().ActiveSubscription.GetCustomWallPaper(clFormInfoManager.ActiveRow.FormName)) != null)
            {
                if (lcCustomWallPaper.ToLower().Contains(ctWallPaperPath))
                {
                    SetCustomBackground(paComponentController, lcCustomWallPaper);
                }
                else
                {
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_desktopbackgroundcss, lcCustomWallPaper);
                }
            }
        }
Esempio n. 7
0
        public void AddGradientStyle(GradientOrientation paGraditenOrientation, String paStartColor, String paEndColor)
        {
            String lcDirectionStart;
            String lcDirectionEnd;

            lcDirectionStart = paGraditenOrientation == GradientOrientation.Horizontal ? "left" : "top";
            lcDirectionEnd   = paGraditenOrientation == GradientOrientation.Horizontal ? "right" : "bottom";

            clComponentController.AddStyle(CSSStyle.Filter, ctIEGradient.Replace("$STARTCOLOR", paStartColor).Replace("$ENDCOLOR", paEndColor).Replace("$GRADIENTTYPE", paGraditenOrientation == GradientOrientation.Horizontal ? "1" : "0"));
            clComponentController.AddStyle(CSSStyle.Background, ctWEBKITGradient.Replace("$STARTCOLOR", paStartColor).Replace("$ENDCOLOR", paEndColor).Replace("$DIRECTIONSTART", lcDirectionStart));
            clComponentController.AddStyle(CSSStyle.Background, ctMOZGradient.Replace("$STARTCOLOR", paStartColor).Replace("$ENDCOLOR", paEndColor).Replace("$DIRECTIONSTART", lcDirectionStart));
            clComponentController.AddStyle(CSSStyle.Background, ctMSLinearGradient.Replace("$STARTCOLOR", paStartColor).Replace("$ENDCOLOR", paEndColor).Replace("$DIRECTIONSTART", lcDirectionStart));
            clComponentController.AddStyle(CSSStyle.Background, ctLinearGradient.Replace("$STARTCOLOR", paStartColor).Replace("$ENDCOLOR", paEndColor).Replace("$DIRECTIONEND", lcDirectionEnd));
            clComponentController.AddStyle(CSSStyle.Background, ctOperaGradient.Replace("$STARTCOLOR", paStartColor).Replace("$ENDCOLOR", paEndColor).Replace("$DIRECTIONSTART", lcDirectionStart));
        }