Example #1
0
        private void TextBoxKeyDown(KeyEventArgs e, ref KeySet set, ref string textBoxTextstr, ref TextBox text)
        {
            string str = KeyToString(e.Key);

            set.List.Add(str);
            SetTextAndTextboxText(ref set, ref textBoxTextstr, ref text);
        }
Example #2
0
        private string SortedSettoString(KeySet set)
        {
            string str = "";

            foreach (string s in set.List)
            {
                if (str == "")
                {
                    str += s;
                }
                else
                {
                    str += " + " + s;
                }
            }

            return(str);
        }