示例#1
0
文件: MainForm.cs 项目: CanftIn/ice
        private void openOToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.DefaultExt = "ice";
            ofd.Filter     = "ice (*.ice)|*.ice";
            ofd.Title      = "Open ice file";

            if (ofd.ShowDialog() == DialogResult.OK && ofd.FileName.Length > 0)
            {
                DocumentForm tForm = new DocumentForm(ofd.FileName);
                tForm.Show();//tForm.Show(dockPanel_main, DockState.Document);
            }
        }
示例#2
0
文件: MainForm.cs 项目: CanftIn/ice
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DocumentForm tForm = new DocumentForm();

            tForm.Show();// tForm.Show(dockPanel_main, DockState.Document);
        }