Example #1
0
        protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
        {
            bool   result = base.LoadPostData(postDataKey, postCollection);
            string val    = postCollection[this.ConfigID.ConcatWith("_SM")];

            if (val != null && this.SelectionModel.Primary != null)
            {
                if (this.SelectionModel.Primary is DefaultSelectionModel)
                {
                    SubmittedNode node = JSON.Deserialize <SubmittedNode>(val, new CamelCasePropertyNamesContractResolver());
                    ((DefaultSelectionModel)this.SelectionModel.Primary).SelectedNode = node;
                }
                else if (this.SelectionModel.Primary is MultiSelectionModel)
                {
                    List <SubmittedNode> nodes = JSON.Deserialize <List <SubmittedNode> >(val, new CamelCasePropertyNamesContractResolver());
                    ((MultiSelectionModel)this.SelectionModel.Primary).SelectedNodes = nodes;
                }
            }

            val = postCollection[this.ConfigID.ConcatWith("_CheckNodes")];
            if (val != null)
            {
                List <SubmittedNode> nodes = JSON.Deserialize <List <SubmittedNode> >(val, new CamelCasePropertyNamesContractResolver());
                this.CheckedNodes = nodes;
            }

            return(result);
        }
Example #2
0
 public SubmitEventArgs(ParameterCollection extraParams, SubmittedNode rootNode)
 {
     this.extraParams = extraParams;
     this.rootNode    = rootNode;
 }
 public SubmitEventArgs(ParameterCollection extraParams, SubmittedNode rootNode)
 {
     this.extraParams = extraParams;
     this.rootNode = rootNode;
 }