protected AdditionalViewControlsProviderDecorator(View view, object control, IAdditionalViewControlsRule controlsRule)
 {
     this.control             = control;
     calculator               = new AdditionalViewControlsProviderCalculator(controlsRule, view.ObjectTypeInfo.Type);
     calculator.HintChanged  += calculator_HintChanged;
     calculator.CurrentObject = view.CurrentObject;
 }
 protected AdditionalViewControlsProviderDecorator(View view,object control, IAdditionalViewControlsRule controlsRule)
 {
     this.control = control;
     calculator = new AdditionalViewControlsProviderCalculator(controlsRule,view.ObjectTypeInfo.Type);
     calculator.HintChanged += calculator_HintChanged;
     calculator.CurrentObject = view.CurrentObject;
 }
 public void Dispose()
 {
     if (calculator != null)
     {
         calculator.HintChanged -= calculator_HintChanged;
         calculator.Dispose();
         calculator = null;
     }
 }
 public void Dispose()
 {
     if (calculator != null)
     {
         calculator.HintChanged -= calculator_HintChanged;
         calculator.Dispose();
         calculator = null;
     }
 }