Пример #1
0
        public static DocForm CreateForm()
        {
            var form = new DocForm
            {
                Text = "New Document " + ++_counter
            };

            SdiApplication.Instance.ApplicationContext.MainForm = form;
            form.Show();
            return(form);
        }
Пример #2
0
 protected override void OnStartupNextInstance(StartupNextInstanceEventArgs eventArgs)
 {
     DocForm.CreateForm();
 }
Пример #3
0
 protected override void OnCreateMainForm()
 {
     DocForm.CreateForm();
 }