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

            form.Text = "New Text Document " + (_counter++).ToString();
            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();
 }