private void btnCalSimply_Click(object sender, EventArgs e) { btnCalculate.Enabled = false; this.lblProg.Text = "00.0000"; var inputs = GetInputs(); if (inputs != null) { mainLogic = new MainLogic(inputs); var result = mainLogic.CalculateLineOfWeights(); SetResultsText(result); } }