protected override void ValidateInstance(IDictionary inst, ref string clickScript)
        {
            string str;
            bool   flag = false;
            string str2 = ",";

            if (inst["unix"] != null)
            {
                try
                {
                    flag = (bool)inst["unix"];
                }
                catch
                {
                    flag = false;
                }
            }
            if (flag && !ZenMenuItem.IsLic(2))
            {
                flag        = false;
                clickScript = "alert('" + SPEncode.ScriptEncode(ProductPage.GetResource("NopeEd", new object[] { ProductPage.GetProductResource("PC_" + base.SchemaName + "_unix", new object[0]), "Basic" })) + "');";
            }
            if (!string.IsNullOrEmpty(str = inst["sep"] + string.Empty))
            {
                if (str == "s")
                {
                    str2 = ";";
                }
                else if (str == "t")
                {
                    str2 = "\t";
                }
            }
            else if (inst["excel"] != null)
            {
                try
                {
                    if ((bool)inst["excel"])
                    {
                        str2 = ";";
                    }
                }
                catch
                {
                }
            }
            if ((str2 != ",") && !ZenMenuItem.IsLic(2))
            {
                str2        = ",";
                clickScript = "alert('" + SPEncode.ScriptEncode(ProductPage.GetResource("NopeEd", new object[] { ProductPage.GetProductResource("PC_" + base.SchemaName + "_sep", new object[0]), "Basic" })) + "');";
            }
            this.seps[inst["id"]]   = str2;
            this.unixes[inst["id"]] = flag;
        }
        public string GetRollupClickScript(IDictionary inst, string webPageUrl, WebPart webPart, List <object[]> filters, List <string> andFilters, Dictionary <string, string> oobFilterPairs)
        {
            string str  = string.Empty;
            string str2 = string.Empty;
            string str3 = "&rpzopt=' + encodeURI(JSON.stringify(roxLastOps['" + webPart.ID + "'][1]))";
            SortedDictionary <string, string> dictionary = new SortedDictionary <string, string>();

            dictionary["rule"]       = inst["id"] + string.Empty;
            dictionary["exportlist"] = webPart.ID;
            dictionary["View"]       = HttpUtility.UrlEncode(webPageUrl);
            dictionary["t"]          = HttpUtility.UrlEncode(webPart.Title);
            dictionary["r"]          = DateTime.Now.Ticks.ToString();
            foreach (KeyValuePair <string, string> pair in dictionary)
            {
                string str4 = str2;
                str2 = str4 + (string.IsNullOrEmpty(str2) ? "?" : "&") + pair.Key + "=" + pair.Value;
            }
            str = SPContext.Current.Web.Url.TrimEnd(new char[] { '/' }) + "/_layouts/" + ProductPage.AssemblyName + "/expo.aspx" + str2;
            return(string.Concat(new object[] { ZenMenuItem.IsLic(2) ? 2 : 0, "location.href='", str, str3, ";" }));
        }