Example #1
0
        public string UpdateText()
        {
            string text = "";

            foreach (char litera in Cuvant)
            {
                if (Char.IsLetter(litera))
                {
                    if (Incercari.Contains(litera))
                    {
                        text += litera + " ";
                    }
                    else
                    {
                        text += "_ ";
                    }
                }
                else
                {
                    text += litera + " ";
                }
            }

            return(text);
        }
Example #2
0
        private bool ACastigat()
        {
            foreach (char c in Cuvant)
            {
                if (Char.IsLetter(c) && !Incercari.Contains(c))
                {
                    return(false);
                }
            }

            return(true);
        }