Exemplo n.º 1
0
 /// <summary>
 /// This function resets the Value of the counter to 0.
 /// </summary>
 private void Reset()
 {
     basicCalculate = new BasicCalculations(this);
     AdditionStats.Reference.Reset();
     DivisionStats.Reference.Reset();
     MultiplicationStats.Reference.Reset();
     SubstractionStats.Reference.Reset();
     UnaryNegativeStats.Reference.Reset();
     CommonStats.Reference.Reset();
 }
Exemplo n.º 2
0
        private void Initialization(object sender, DoWorkEventArgs e)
        {
            BackgroundWorker worker = sender as BackgroundWorker;

            try
            {
                IsNameButtonAfterRun = false;
                file                 = new FileWork();
                basicCalculate       = new BasicCalculations(this);
                IsEnabledBtnOpenFile = true;
            }
            catch (Exception ex)
            {
                IsEnabledBtnOpenFile = false;
                IsEnabledBtnRun      = false;
                MessageBox.Show("Инициализация прервана" + ex.Message);
            }
        }
 public void Init()
 {
     _calc = new BasicCalculations();
 }