public static Form CreateForm() { var form = new DocForm(); form.Text = "New Text Document " + (_counter++).ToString(); SdiApplication.Instance.ApplicationContext.MainForm = form; form.Show(); return(form); }
protected override void OnStartupNextInstance(StartupNextInstanceEventArgs eventArgs) { DocForm.CreateForm(); }
protected override void OnCreateMainForm() { DocForm.CreateForm(); }