Esempio n. 1
0
        private System.Windows.Forms.Form CreateTopLevelWindow(
            ReadOnlyCollection <string> args)
        {
            String fileName = null;

            if (args.Count > 0)
            {
                fileName = args[0];
            }
            return(MultiSDIForm.CreateTopLevelWindow(fileName));
        }
Esempio n. 2
0
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (OpenFileDialog dlg = new OpenFileDialog())
     {
         dlg.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*";
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             MultiSDIForm.CreateTopLevelWindow(dlg.FileName);
         }
     }
 }
Esempio n. 3
0
 private void newToolStripButton_Click(object sender, EventArgs e)
 {
     MultiSDIForm.CreateTopLevelWindow(null);
 }