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

            form.Text = "New Excel sheet " + ++_counter;
            ExcelApplication.Instance.ApplicationContext.MainForm = form;
            form.Show();

            return(form);
        }
Пример #2
0
 protected override void OnStartupNextInstance(StartupNextInstanceEventArgs eventArgs)
 {
     ExcelForm.CreateForm();
 }
Пример #3
0
 protected override void OnCreateMainForm()
 {
     ExcelForm.CreateForm();
 }