void rangeinputcontrol_Execute(PrimesBigInteger from, PrimesBigInteger to, PrimesBigInteger second) { bool doExecute = true; foreach (Control element in pnlFactors.Children) { if (element.GetType() == typeof(InputSingleControl)) { InputSingleControl isc = element as InputSingleControl; PrimesBigInteger i = isc.GetValue(); doExecute &= i != null; if (doExecute) { m_Polynom.SetParameter(isc.Tag.ToString(), i); } } } if (Execute != null && doExecute) { LockAll(); Execute(from, to, m_Polynom); } }