Ejemplo n.º 1
0
        private void checkBoxRemoveTabs_CheckedChanged(object sender, EventArgs e)
        {
            TextCopy remTab = new TextCopy();

            textToCopy.Text            = remTab.RemoveTabs(textToCopy.Text);
            checkBoxRemoveTabs.Checked = true;
        }
Ejemplo n.º 2
0
        private void checkBoxChangeTabs_CheckedChanged(object sender, EventArgs e)
        {
            TextCopy changeTab = new TextCopy();

            textToCopy.Text            = changeTab.ChangeTabsToEnter(textToCopy.Text);
            checkBoxChangeTabs.Checked = true;
        }
Ejemplo n.º 3
0
        private void buttonCopy_Click(object sender, EventArgs e)
        {
            TextCopy getLine = new TextCopy();

            labelCopyStatus.Text     = getLine.GetCurrentLine(textToCopy.Text);
            labelCurrentLineNum.Text = TextCopy._lineNum.ToString();
        }
Ejemplo n.º 4
0
        private void checkBoxRemovLines_CheckedChanged(object sender, EventArgs e)
        {
            TextCopy removeLines = new TextCopy();

            textToCopy.Text            = removeLines.RemoveEmptyLines(textToCopy.Text);
            checkBoxRemovLines.Checked = true;
        }
Ejemplo n.º 5
0
        private void buttonRemoveChar_Click(object sender, EventArgs e)
        {
            TextCopy removeChar = new TextCopy();

            textToCopy.Text   = removeChar.RemoveCharacter(textToCopy.Text, textRemChar.Text);
            labelRemChar.Text = "Character '" + textRemChar.Text + "' was removed";
            textRemChar.Text  = "";
        }
Ejemplo n.º 6
0
        private void buttonLineAccept_Click(object sender, EventArgs e)
        {
            TextCopy textCopy = new TextCopy();

            string [] ret = textCopy.LinNumChange(textToCopy.Text, textBoxLineChange.Text);
            textBoxLineChange.Text   = "";
            labelCurrentLineNum.Text = ret[0];
            labelCopyStatus.Text     = ret[1];
        }
Ejemplo n.º 7
0
        private void buttonCopyToCopyPaste_Click(object sender, EventArgs e)
        {
            textToCopy.Text = richTextExtractEmails.Text;
            TextCopy textCopy = new TextCopy();

            string[] ret = textCopy.LinNumChange(textToCopy.Text, textBoxLineChange.Text);
            textBoxLineChange.Text   = "";
            labelCurrentLineNum.Text = ret[0];
            labelCopyStatus.Text     = ret[1];
        }
Ejemplo n.º 8
0
        protected override void WndProc(ref Message m)
        {
            // Catch when a HotKey is pressed
            if (m.Msg == 0x0312)
            {
                int id = m.WParam.ToInt32();
                // MessageBox.Show(string.Format("Hotkey #{0} pressed", id));

                // Handle what will happen once a respective hotkey is pressed
                switch (id)
                {
                case 1:
                    TextCopy prevLine = new TextCopy();
                    prevLine.GetPreviousLine(FormMain.GetRichText());
                    break;

                case 2:
                    TextCopy getLine = new TextCopy();
                    getLine.GetCurrentLine(FormMain.GetRichText());
                    break;

                case 3:
                    TextCopy nextLine = new TextCopy();
                    nextLine.GetNextLine(FormMain.GetRichText());
                    break;

                case 4:

                    TextCopy copyOwnTextOne = new TextCopy();
                    copyOwnTextOne.CopyOwnText(FormMain.GetOwnTexts()[0]);
                    break;

                case 5:
                    TextCopy copyOwnTextTwo = new TextCopy();
                    copyOwnTextTwo.CopyOwnText(FormMain.GetOwnTexts()[1]);
                    break;
                }
            }

            base.WndProc(ref m);
        }
Ejemplo n.º 9
0
        private void buttonSortRemoveLines_Click(object sender, EventArgs e)
        {
            TextCopy removeLines = new TextCopy();

            richTextBoxSort.Text = removeLines.RemoveEmptyLines(richTextBoxSort.Text);
        }
Ejemplo n.º 10
0
        private void buttonTabToEnter_Click(object sender, EventArgs e)
        {
            TextCopy changeTab = new TextCopy();

            richTextBoxSort.Text = changeTab.ChangeTabsToEnter(richTextBoxSort.Text);
        }
Ejemplo n.º 11
0
        private void buttonCopyOwnTextTwo_Click(object sender, EventArgs e)
        {
            TextCopy copyOwnText = new TextCopy();

            copyOwnText.CopyOwnText(textBoxOwnTextTwo.Text);
        }
Ejemplo n.º 12
0
        private void buttonCNextLine_Click(object sender, EventArgs e)
        {
            TextCopy nextLine = new TextCopy();

            labelCopyStatus.Text = nextLine.GetNextLine(textToCopy.Text);
        }
Ejemplo n.º 13
0
        private void buttonCPrevLine_Click(object sender, EventArgs e)
        {
            TextCopy prevLine = new TextCopy();

            labelCopyStatus.Text = prevLine.GetPreviousLine(textToCopy.Text);
        }