Esempio n. 1
0
 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;
            }
        }
Esempio n. 3
0
 private void txtAdditive_Diam_TextChanged(object sender, EventArgs e)
 {
     txtAdditive_Diam.Text = CustomStrings.DeixaSomenteDecimais(txtAdditive_Diam.Text);
 }
Esempio n. 4
0
 private void txtLucro_TextChanged(object sender, EventArgs e)
 {
     txtLucro.Text = CustomStrings.DeixaSomenteDecimais(txtLucro.Text);
 }
Esempio n. 5
0
 private void txtValorFinal_TextChanged(object sender, EventArgs e)
 {
     txtValorFinal.Text = CustomStrings.DeixaSomenteDecimais(txtValorFinal.Text);
 }
Esempio n. 6
0
 private void txtCotacaoMoeda_TextChanged(object sender, EventArgs e)
 {
     txtCotacaoMoeda.Text = CustomStrings.DeixaSomenteDecimais(txtCotacaoMoeda.Text);
 }