示例#1
0
        private void createNewtxtFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TxtEditor txt = new TxtEditor();

            txt.MdiParent = this;
            txt.Show();
            txt.TxbSelectionFont = new Font("Times New Roman", 12);
            tscbFontStyles.Text  = txt.TxbFontName;
            tscbFontSize.Text    = txt.TxbFontSize.ToString();
        }
示例#2
0
        private void opentxtFilesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TxtEditor txt = new TxtEditor()
            {
                MdiParent = this
            };

            if (txt.OpenFile() == DialogResult.OK)
            {
                txt.Show();
                tscbFontStyles.Text = txt.TxbFontName;
                tscbFontSize.Text   = txt.TxbFontSize.ToString();
            }
        }