private bool checkValidateProfRow(GroupBox gpInput) { foreach (var item in gpInput.Controls) { ValidatingTextBox vtbTemp = item as ValidatingTextBox; TextBox tbtemp = item as TextBox; if (vtbTemp != null) { if (string.IsNullOrEmpty(vtbTemp.ValueTxt)) { return(false); } } if (tbtemp != null) { if (string.IsNullOrEmpty(tbtemp.Text)) { return(false); } } } return(true); }
private void vtbSeriaTo_Validated(object sender, EventArgs e) { ValidatingTextBox tempVtb = sender as ValidatingTextBox; _seriaTo = MathFunctionForSeries.GetIntSeriaNumber(tempVtb.ValueTxt); LinqQueryForTrudoyomkost.FillOperNumlbox(_detNumID, _seriaFrom, _seriaTo, _selectProdCipher, ref lBoxOperNum); }