//**************************************************************************** //* <placeholder for header> * //**************************************************************************** private void generate() { updateOutputs(); string toClipboard = ""; if (rbnClipboardDontChange.Checked) { toClipboard = ""; } //Short inline form. Example: // // // if (rbnClipboardShort.Checked) { toClipboard = txtShortMarkdown_text.Text; this.ActiveControl = txtShortMarkdown_reference; //Note: not the // same as where the clipboard content comes from. This is to // get ready for copying the reference section (by the user). } if (rbnClipboardInline.Checked) { toClipboard = txtInlineMarkdown.Text; this.ActiveControl = txtInlineMarkdown; //Change focus, to be // consistent with the behaviour for the short form (above). } if (rbnClipboardHTML.Checked) { toClipboard = txtHTML.Text; this.ActiveControl = txtHTML; //Change focus, to be // consistent with the behaviour for the short form (above). } if (toClipboard != "") { ////toClipboard = "\n" + toClipboard + "\n"; //System.Windows.Forms.Clipboard.SetText(toClipboard); EditorOverflowApplication.setClipboard3(toClipboard, null); //Later: add clipboard retry info to GUI (e.g. by reusing // something. } } //generate()
//**************************************************************************** //* <placeholder for header> * //**************************************************************************** private void btnCopyToClipboard_Click(object aSender, EventArgs anEvent) { string currentFile = txtCurrentFile.Text; mApplication.setClipboard3(currentFile); }
//**************************************************************************** //* <placeholder for header> * //**************************************************************************** private void btnCopyToClipboard_Click(object aSender, EventArgs anEvent) { string currentFile = txtCurrentFile.Text; EditorOverflowApplication.setClipboard3(currentFile, null); }