internal static NodeSelectionType MntpGetStartNodeSelectionType(this HttpCookie c, int dataTypeId) { return(c.ValidateCookieVal(CookieVals.Snst, dataTypeId) ? (NodeSelectionType) Enum.ToObject(typeof(NodeSelectionType), int.Parse(c.Values[string.Concat(CookieVals.Snst, "_", dataTypeId)])) : NodeSelectionType.Picker); }
internal static XPathFilterType MntpGetXPathFilterType(this HttpCookie c, int dataTypeId) { return(c.ValidateCookieVal(CookieVals.Xpft, dataTypeId) ? (XPathFilterType)Enum.ToObject(typeof(XPathFilterType), int.Parse( c.Values[string.Concat(CookieVals.Xpft, "_", dataTypeId)])) : XPathFilterType.Disable); }
internal static XPathExpressionType MntpGetStartNodeXPathExpressionType(this HttpCookie c, int dataTypeId) { return(c.ValidateCookieVal(CookieVals.Snxet, dataTypeId) ? (XPathExpressionType) Enum.ToObject(typeof(XPathExpressionType), int.Parse(c.Values[string.Concat(CookieVals.Snxet, "_", dataTypeId)])) : XPathExpressionType.Global); }
internal static string MntpGetXPathFilter(this HttpCookie c, int dataTypeId) { return(c.ValidateCookieVal(CookieVals.Xpf, dataTypeId) ? c.Values[string.Concat(CookieVals.Xpf, "_", dataTypeId)] : string.Empty); }
internal static int MntpGetCurrentEditingNode(this HttpCookie c, int dataTypeId) { return(c.ValidateCookieVal(CookieVals.Ceni, dataTypeId) ? int.Parse(c.Values[string.Concat(CookieVals.Ceni, "_", dataTypeId)]) : -1); }
internal static string MntpGetStartNodeXPathExpression(this HttpCookie c, int dataTypeId) { return(c.ValidateCookieVal(CookieVals.Snxe, dataTypeId) ? c.Values[string.Concat(CookieVals.Snxe, "_", dataTypeId)] : string.Empty); }
internal static int MntpGetStartNodeId(this HttpCookie c, int dataTypeId) { return(c.ValidateCookieVal(CookieVals.Sn, dataTypeId) ? int.Parse(c.Values[string.Concat(CookieVals.Sn, "_", dataTypeId)]) : -1); }