Пример #1
0
        public static DocForm CreateForm()
        {
            var form = new DocForm();

            counter++;
            form.Text = "New Document " + counter;
            SdiApplication.Instance.ApplicationContext.MainForm = form;
            form.Show();

            return(form);
        }
 protected override void OnStartupNextInstance(StartupNextInstanceEventArgs eventArgs)
 {
     DocForm.CreateForm();
 }
 protected override void OnCreateMainForm()
 {
     DocForm.CreateForm();
 }