Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Mensagem.Length != 0)
            {
                hash ^= Mensagem.GetHashCode();
            }
            if (ValorAtual != 0)
            {
                hash ^= ValorAtual.GetHashCode();
            }
            if (LocalSvc.Length != 0)
            {
                hash ^= LocalSvc.GetHashCode();
            }
            if (TargetFramework.Length != 0)
            {
                hash ^= TargetFramework.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        private void AcrescentaDígito(string valorSelecionado)
        {
            if (valorSelecionado == "," && ValorAtual.Contains(","))
            {
                return;
            }

            if (ValorAtual == "" && valorSelecionado == ",")
            {
                ValorAtual = "0";
            }

            ValorAtual             = (ValorAtual) + valorSelecionado;
            textBoxValorAtual.Text = ValorAtual;
        }
Exemple #3
0
        private void DeletaDigito()
        {
            string visor = textBoxValorAtual.Text;

            if (visor.Length > 0)
            {
                visor                  = visor.Remove(visor.Length - 1);
                ValorAtual             = visor;
                textBoxValorAtual.Text = ValorAtual.ToString();

                if (visor.Length == 0)
                {
                    textBoxValorAtual.Text = "0";
                }
            }
        }