Exemple #1
0
        private void OpenInsertObjectForm(object sender, EventArgs e)
        {
            if (activeRichTextBox == null)
            {
                return;
            }

            using (InsertObjectForm form = new InsertObjectForm()) {
                DialogResult res = form.ShowDialog();

                if (res == DialogResult.OK)
                {
                    // Paste in the active textbox. Data will already be saved in clipboard at this point
                    activeRichTextBox.Paste();
                    ProjectMemoConsole.CustomConsole.Log("Pasted DataObject into activeRichTextBox");
                }
            }
        }