public override void Restore()
 {
     if (ruleControl_ == null)
     {
         return;
     }
     ruleControl_.RestoreFromRule(this);
 }
Пример #2
0
 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);
        }