CalendarAggregator.CalendarRenderer.GetCssUrl C# (CSharp) Метод

GetCssUrl() публичный Метод

public GetCssUrl ( object>.Dictionary args ) : string
args object>.Dictionary
Результат string
        public string GetCssUrl(Dictionary<string,object> args)
        {
            if (args == null)
            return this.calinfo.css;

            string mobile;
            if ( args.ContainsKey("mobile") )
            mobile = (bool) args["mobile"] ? "yes" : "no";
            else
            mobile = "no";
            string mobile_long = args.ContainsKey("mobile_long") ? (string) args["mobile_long"] : "";
            string ua = args.ContainsKey("ua") ? (string) args["ua"] : "";

            string css_url = this.calinfo.css;

            if (args.ContainsKey("theme") && args["theme"] != null )
            {
            var theme_name = args["theme"].ToString();
            css_url = String.Format("http://{0}/get_css_theme?theme_name={1}&mobile={2}&mobile_long={3}&ua={4}",
                ElmcityUtils.Configurator.appdomain,
                theme_name,
                mobile,
                mobile_long,
                ua);
            }

            return css_url;
        }