示例#1
0
        private void _treeCntBTN_Click(object sender, EventArgs e)
        {
            if (_blockTBClick == true)
            {
                return;
            }
            _blockTBClick = true;

            int?initialValue = (_plot.TreeCount <= 0) ? (int?)null : (int?)_plot.TreeCount;

            using (var numpad = new FormNumPad())
            {
                numpad.ShowDialog(0, 999, initialValue, true);
                _plot.TreeCount = (uint)numpad.UserEnteredValue.GetValueOrDefault();
            }

            //this.TreeCount = (int)(Controller.ShowNumericValueInput(0, 999, (this.TreeCount <= 0) ? (int?)null : (int?)this.TreeCount, true) ?? -1);
            _plot.KPI     = _plot.CalculateKPI();
            _blockTBClick = false;
        }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this._main != null)
         {
             this._main.Dispose();
             this._main = null;
         }
         if (this._numPadDialog != null)
         {
             this._numPadDialog.Dispose();
             this._numPadDialog = null;
         }
     }
 }