Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 internal static string MntpGetXPathFilter(this HttpCookie c, int dataTypeId)
 {
     return(c.ValidateCookieVal(CookieVals.Xpf, dataTypeId)
                ? c.Values[string.Concat(CookieVals.Xpf, "_", dataTypeId)]
                : string.Empty);
 }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 6
0
 internal static string MntpGetStartNodeXPathExpression(this HttpCookie c, int dataTypeId)
 {
     return(c.ValidateCookieVal(CookieVals.Snxe, dataTypeId)
         ? c.Values[string.Concat(CookieVals.Snxe, "_", dataTypeId)]
         : string.Empty);
 }
Exemplo n.º 7
0
 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);
 }