public override Object Clone()
        {
            TemplateParamRule res = (TemplateParamRule)MemberwiseClone();

            res.ruleControl_ = null;
            return(res);
        }
        public void SaveToRule(TemplateParamRule r)
        {
            if (r == null)
                return;

            r.enabled_ = RuleEnabledCheckBox.Checked;
            r.Name = NameTextbox.Text.Trim();
            r.ParamName = ParamNameTextBox.Text.Trim();
            r.NewParamName = ChangeNameToTextBox.Text.Trim();
        }
        public void RestoreFromRule(TemplateParamRule r)
        {
            if (r == null)
                return;

            RuleEnabledCheckBox.Checked = r.enabled_;
            NameTextbox.Text = r.Name;
            ParamNameTextBox.Text = r.ParamName;
            ChangeNameToTextBox.Text = r.NewParamName;
        }
        public void RestoreFromRule(TemplateParamRule rule)
        {
            if (rule == null)
            {
                return;
            }

            RuleEnabledCheckBox.Checked = rule.enabled_;
            NameTextbox.Text            = rule.Name;
            ParamNameTextBox.Text       = rule.ParamName;
            ChangeNameToTextBox.Text    = rule.NewParamName;
        }
        public void SaveToRule(TemplateParamRule rule)
        {
            if (rule == null)
            {
                return;
            }

            rule.enabled_     = RuleEnabledCheckBox.Checked;
            rule.Name         = NameTextbox.Text.Trim();
            rule.ParamName    = ParamNameTextBox.Text.Trim();
            rule.NewParamName = ChangeNameToTextBox.Text.Trim();
        }