protected virtual void OnDropDownCalculatorCreated(Calculator calculator){}
 protected virtual void UpdateCalculatorValue(Calculator calculator) { }
Exemple #3
0
 protected override void UpdateCalculatorValue(Calculator calculator) 
 {
     calculator.Value = this.Value;
 }
 private void CalculatorButtonClick(object sender, EventArgs e)
 {
     if (_CloseTime != DateTime.MinValue && DateTime.Now.Subtract(_CloseTime).TotalMilliseconds < 150)
     {
         _CloseTime = DateTime.MinValue;
         return;
     }
     if (_DropDownCalculator == null)
     {
         _DropDownCalculator = new Calculator();
         _DropDownCalculator.AutoSize = true;
         _DropDownCalculator.FocusButtonsOnMouseDown = false;
         _DropDownCalculator.DisplayVisible = false;
         _DropDownCalculator.ValueChanged += new EventHandler<ValueChangedEventArgs>(DropDownCalculatorValueChanged);
         OnDropDownCalculatorCreated(_DropDownCalculator);
     }
     UpdateCalculatorValue(_DropDownCalculator);
     _IsCalculatorDisplayed = true;
     ShowDropDown(_DropDownCalculator);
 }
Exemple #5
0
 protected override void OnDropDownCalculatorCreated(Calculator calculator)
 {
     base.OnDropDownCalculatorCreated(calculator);
     calculator.IsIntValue = true;
 }