public static DocForm CreateForm() { var form = new DocForm { 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(); }