예제 #1
0
        private void menuNew_Click(object sender, EventArgs e)
        {
            FrmLuaEditor frm = new FrmLuaEditor();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
        }
예제 #2
0
        private void menuOpen_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            dlg.Filter = "*.lua|*.lua|*.*|*.*";
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                FrmLuaEditor frm = new FrmLuaEditor();
                frm.MdiParent   = this;
                frm.WindowState = FormWindowState.Maximized;
                frm.LoadFile(dlg.FileName);
                frm.Show();
            }
        }