public override void Restore()
 {
     if (ruleControl_ == null)
     {
         return;
     }
     ruleControl_.RestoreFromRule(this);
 }
 public override Control CreateControl(IRuleControlOwner owner, Control.ControlCollection collection, System.Drawing.Point pos)
 {
     InTemplateRuleControl rc = new InTemplateRuleControl(owner);
     rc.Location = pos;
     rc.RestoreFromRule(this);
     DisposeControl();
     ruleControl_ = rc;
     collection.Add(rc);
     return rc;
 }
        public override Control CreateControl(IRuleControlOwner owner, Control.ControlCollection collection, System.Drawing.Point pos)
        {
            InTemplateRuleControl rc = new InTemplateRuleControl(owner);

            rc.Location = pos;
            rc.RestoreFromRule(this);
            DisposeControl();
            ruleControl_ = rc;
            collection.Add(rc);
            return(rc);
        }