private void importTextToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (searchDialog != null)
            {
                PlainTextDialog dlg = new PlainTextDialog();
                dlg.ShowDialog();

                if (!String.IsNullOrEmpty(this.searchDialog.FileContents) && !String.IsNullOrWhiteSpace(this.searchDialog.FileContents))
                {
                    dlg.PlainTextTextBox.Text = this.searchDialog.FileContents;
                }

                if (dlg.closeAccept == true)
                {
                    foreach (Text textToAdd in dlg.plainTextDoc.content)
                    {
                        textToAdd.ZOrder          = Zorder;
                        Zorder                   += 1;
                        textToAdd.Color           = Color.Black;
                        textToAdd.BackgroundColor = Color.Transparent;

                        textToAdd.Font = new Font("Times New Roman", 12.0f);

                        doc.Add(textToAdd);
                    }
                    this.docPictureBox.Invalidate();
                }
            }
        }
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PlainTextDialog dlg = new PlainTextDialog();

            dlg.ShowDialog();

            if (dlg.closeAccept == true)

            {
                foreach (Text textToAdd in dlg.plainTextDoc.content)
                {
                    textToAdd.ZOrder          = Zorder;
                    Zorder                   += 1;
                    textToAdd.Color           = Color.Black;
                    textToAdd.BackgroundColor = Color.Transparent;

                    textToAdd.Font = new Font("Times New Roman", 12.0f);

                    doc.Add(textToAdd);
                }
                this.docPictureBox.Invalidate();
            }
        }