Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Waiter w = new Waiter(this);

            w.BeginWait();

            Enabled = false;

            try
            {
                metersList.CalculateGeneralCoeffs();
            }
            catch (Exception ex)
            {
                NotificationHelper.ShowError(ex.Message);
            }
            finally
            {
                Enabled = true;
                w.EndWait();
            }
        }