Exemplo n.º 1
0
        private void 转到行ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MarkdownEditor me = meditorManager.GetCurrEditor();

            if (me == null)
            {
                return;
            }

            if (me.GetTextBox().Document.LineCount > 0)
            {
                //Show the dialog
                GoToLineDialog gtl = new GoToLineDialog(me.GetTextBox());
                gtl.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void 转到行ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MarkdownEditor me = meditorManager.GetCurrEditor();
            if (me == null) return;

            if (me.GetTextBox().Document.LineCount > 0)
            {
                //Show the dialog
                var gtl = new GoToLineDialog(me.GetTextBox());
                gtl.ShowDialog();
            }
        }