private void txtAltura_TextChanged(object sender, EventArgs e) { if (!mJaCarregouInterface) { return; } txtAltura.Text = CustomStrings.DeixaSomenteDecimais(txtAltura.Text); CalculaPesoEmQuilos_MateriaPrima(); }
private void txtMargem_TextChanged(object sender, EventArgs e) { if (!String.IsNullOrEmpty(txtMargem.Text)) { txtMargem.Text = CustomStrings.DeixaSomenteDecimais(this.txtMargem.Text); //Coloca um nome automático para facilitar a vida do usuário. txtNome.Text = $"Margem {txtMargem.Text.ToString().Replace(",", ".")}%"; RecalculaMarkup(); } else { return; } }
private void txtAdditive_Diam_TextChanged(object sender, EventArgs e) { txtAdditive_Diam.Text = CustomStrings.DeixaSomenteDecimais(txtAdditive_Diam.Text); }
private void txtLucro_TextChanged(object sender, EventArgs e) { txtLucro.Text = CustomStrings.DeixaSomenteDecimais(txtLucro.Text); }
private void txtValorFinal_TextChanged(object sender, EventArgs e) { txtValorFinal.Text = CustomStrings.DeixaSomenteDecimais(txtValorFinal.Text); }
private void txtCotacaoMoeda_TextChanged(object sender, EventArgs e) { txtCotacaoMoeda.Text = CustomStrings.DeixaSomenteDecimais(txtCotacaoMoeda.Text); }