示例#1
0
 private void nameChanging(object rename)
 {
     CheckForIllegalCrossThreadCalls = false;
     while (true)
     {
         int nameValue = Convert.ToInt32(numericUpDown1.Value);
         this.Text = Glitch.Text(Convert.ToString(rename), nameValue, false);
         Thread.Sleep(100);
     }
 }
示例#2
0
 private void glitching()
 {
     TextOGlitchForm1.threadLocalization();
     CheckForIllegalCrossThreadCalls = false;
     label1.Text = Translate.fg_waiting;
     label1.Update();
     output = Glitch.Text(workString, Convert.ToInt32(numericUpDown1.Value), false);
     if (!lightMass.Checked)
     {
         richTextBox2.Text = output;
     }
     else if (lightMass.Checked)
     {
         //char[] light = output.ToCharArray();
         //int count = 0;
         //foreach(char b in light)
         //{
         //    if(b == '�' || unicodeSquares.Contains(b))
         //    {
         //        count++;
         //    }
         //}
         //char[] outputLight = new char[light.Length - count];
         //int i = 0;
         //foreach (char b in light)
         //{
         //    if(b != '�' && !unicodeSquares.Contains(b))
         //    {
         //        outputLight[i] = b;
         //        i++;
         //    }
         //    else
         //    {
         //        continue;
         //    }
         //}
         //output = new string(outputLight);
         richTextBox2.Text = Glitch.Text(richTextBox1.Text, Convert.ToInt32(numericUpDown1.Value), true);
     }
     label1.Text                     = Translate.done;
     richTextBox1.Enabled            = true;
     glitchOneStringCheckBox.Enabled = true;
     glitchMass.Enabled              = true;
     replaceMass.Enabled             = true;
     reverseMass.Enabled             = true;
     numericUpDown1.Enabled          = true;
     lightMass.Enabled               = true;
     startMass.Enabled               = true;
     paste.Enabled                   = true;
 }
示例#3
0
 private void nameChanging(object rename)
 {
     CheckForIllegalCrossThreadCalls = false;
     while (true)
     {
         int nameValue = Convert.ToInt32(glitchExtent.Value);
         if (nameValue <= 5)
         {
             this.Text = Glitch.Text(Convert.ToString(rename), nameValue, true);
         }
         else
         {
             this.Text = Glitch.Text(Convert.ToString(rename), 5, true);
         }
         Thread.Sleep(200);
     }
 }
示例#4
0
        private void working()
        {
            TextOGlitchForm1.threadLocalization();
            CheckForIllegalCrossThreadCalls = false;
            switch (mode)
            {
            case 0:
                string output;
                if (!lightGlitch.Checked)
                {
                    output       = Glitch.Text(textIn.Text, Convert.ToInt32(glitchExtent.Value), false);
                    output       = output.Replace("\r", null);
                    output       = output.Replace("\n", null);
                    textOut.Text = output;
                }
                else if (lightGlitch.Checked)
                {
                    output       = Glitch.Text(textIn.Text, Convert.ToInt32(glitchExtent.Value), true);
                    output       = output.Replace("\r", null);
                    output       = output.Replace("\n", null);
                    textOut.Text = output;
                }
                break;

            case 1:
                textOut.Text = Replace.Text(textIn.Text);
                break;

            case 2:
                textOut.Text = Reverse.Text(textIn.Text);
                break;

            case 3:
                textOut.Text = Generate.TextAndNumbers(Convert.ToInt32(glitchExtent.Value));
                break;

            case 4:
                textOut.Text = Generate.OnlyText(Convert.ToInt32(glitchExtent.Value));
                break;

            case 5:
                textOut.Text = Generate.OnlyNumbers(Convert.ToInt32(glitchExtent.Value));
                break;

            case 6:
                textOut.Text = EasyBase64.Encode(textIn.Text);
                break;

            case 7:
                string outText = textOut.Text = EasyBase64.Decode(textIn.Text);
                if (outText == "It is not Base64.")
                {
                    textOut.Text = Translate.itsNotBase;
                }
                else
                {
                    textOut.Text = outText;
                }
                break;
            }
            try
            {
                EmptyWorkingSet(System.Diagnostics.Process.GetCurrentProcess().Handle);
            }
            catch
            {
            }
        }
示例#5
0
        private void working()
        {
            TextOGlitchForm1.threadLocalization();
            CheckForIllegalCrossThreadCalls = false;
            switch (TextOGlitchForm1.modeTray)
            {
            case 0:
                if (textBox1.Text != "")
                {
                    if (textOutput != textBox1.Text)
                    {
                        textOriginal  = textBox1.Text;
                        textOutput    = Glitch.Text(textOriginal, Convert.ToInt32(numericUpDown1.Value), false);
                        textBox1.Text = textOutput;
                    }
                    else
                    {
                        textOutput    = Glitch.Text(textOriginal, Convert.ToInt32(numericUpDown1.Value), false);
                        textBox1.Text = textOutput;
                    }
                }
                break;

            case 1:
                if (textOutput != textBox1.Text)
                {
                    textOriginal  = textBox1.Text;
                    textOutput    = Glitch.Text(textOriginal, Convert.ToInt32(numericUpDown1.Value), true);
                    textBox1.Text = textOutput;
                }
                else
                {
                    textOutput    = Glitch.Text(textOriginal, Convert.ToInt32(numericUpDown1.Value), true);
                    textBox1.Text = textOutput;
                }
                break;

            case 2:
                if (textBox1.Text != "")
                {
                    if (textOutput != textBox1.Text)
                    {
                        textOriginal  = textBox1.Text;
                        textOutput    = Replace.Text(textOriginal);
                        textBox1.Text = textOutput;
                    }
                    else
                    {
                        textOutput    = Replace.Text(textOriginal);
                        textBox1.Text = textOutput;
                    }
                }
                break;

            case 3:
                if (textBox1.Text != "")
                {
                    textBox1.Text = Reverse.Text(textBox1.Text);
                }
                break;

            case 4:
                if (radioButton1.Checked)
                {
                    textBox1.Text = Generate.TextAndNumbers(Convert.ToInt32(numericUpDown1.Value));
                }
                else if (radioButton2.Checked)
                {
                    textBox1.Text = Generate.OnlyText(Convert.ToInt32(numericUpDown1.Value));
                }
                else if (radioButton3.Checked)
                {
                    textBox1.Text = Generate.OnlyNumbers(Convert.ToInt32(numericUpDown1.Value));
                }
                break;
            }
            try
            {
                EmptyWorkingSet(System.Diagnostics.Process.GetCurrentProcess().Handle);
            }
            catch
            {
            }
        }