Esempio n. 1
0
        private void findToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var form = new Form {
                Size = new Size(100, 100), FormBorderStyle = FormBorderStyle.FixedToolWindow
            };
            var textBox = new TextBox {
                Size = new Size(100, 25)
            };
            var btn = new Button {
                Text = @"Find", Size = new Size(100, 30), Location = new Point(0, 30)
            };

            btn.Click += (send, evt) => Redactor.FindWord(richTextBox1, textBox.Text, form);
            form.Controls.Add(textBox);
            form.Controls.Add(btn);
            form.ShowDialog();
        }
Esempio n. 2
0
        private void findReplaceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new Form {
                Size = new Size(100, 150), FormBorderStyle = FormBorderStyle.FixedToolWindow
            };
            var find = new TextBox {
                Size = new Size(100, 25)
            };
            var replace = new TextBox {
                Size = new Size(100, 25), Location = new Point(0, 30)
            };
            var btn = new Button {
                Text = @"Find and replace", Size = new Size(100, 30), Location = new Point(0, 60)
            };

            btn.Click += (send, evt) => Redactor.FindAndReplace(richTextBox1, find.Text, replace.Text, form);
            form.Controls.Add(find);
            form.Controls.Add(replace);
            form.Controls.Add(btn);
            form.ShowDialog();
        }
Esempio n. 3
0
 private void printToolStripMenuItem_Click(object sender, EventArgs e) => Redactor.PrintFile();
Esempio n. 4
0
 private void helpToolStripMenuItem_Click(object sender, EventArgs e) => Redactor.HelpMenu();
Esempio n. 5
0
 private void pasteToolStripMenuItem_Click(object sender, EventArgs e) => Redactor.PasteText(richTextBox1);
Esempio n. 6
0
 private void copyToolStripMenuItem_Click(object sender, EventArgs e) => Redactor.CopyText(richTextBox1);