private void btnCalculate_Click(object sender, EventArgs e) { int number = int.Parse(tbRepetitiveUnits.Text); double deadline = double.Parse(tbProjectDuration.Text); string unitName = tbName.Text; Controller.NumberOfUnits = number; Controller.ProjectDeadline = deadline; Controller.UnitName = unitName; Controller.CalculateLineOfBalance(); }