Exemplo n.º 1
0
        public override void Write(char value)
        {
            base.Write(value);
            textBox.Append(value.ToString());

            if (textBox.Length > LOGS_LENGHT)
            {
                textBox.Remove(0, textBox.Length - LOGS_LENGHT);
            }

            TextChange?.Invoke();
        }
        private void BtnGenRndCode_Click(object sender, RoutedEventArgs e)
        {
            char[] bulgarianAlphabet = new char[] { 'А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ж', 'З', 'И', 'Й', 'К', 'Л', 'М', 'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Ъ', 'ь', 'Ю', 'Я' };

            Random random = new Random();
            string randomGeneratedLetters = "";

            for (int i = 0; i < 50; i++)
            {
                randomGeneratedLetters += bulgarianAlphabet[random.Next(0, 30)].ToString();
            }

            codes.Add(randomGeneratedLetters);

            TextChange?.Invoke(this, new TextChangeEventArgs(codes));
        }
Exemplo n.º 3
0
 private void ScintillaCode_TextChanged(object sender, EventArgs e)
 {
     TextChange?.Invoke(sender, e);
 }
Exemplo n.º 4
0
 //Methods & Functions
 private void TXT_Input_TextChanged(object sender, EventArgs e)
 {
     TextChange?.Invoke(this, EventArgs.Empty);
 }