Example #1
0
 protected virtual void OnDropDownCalculatorCreated(Calculator calculator){}
Example #2
0
 protected virtual void UpdateCalculatorValue(Calculator calculator) { }
Example #3
0
 protected override void UpdateCalculatorValue(Calculator calculator) 
 {
     calculator.Value = this.Value;
 }
Example #4
0
 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);
 }
Example #5
0
 protected override void OnDropDownCalculatorCreated(Calculator calculator)
 {
     base.OnDropDownCalculatorCreated(calculator);
     calculator.IsIntValue = true;
 }