protected override void OnCreateMainForm()
 {
     if (mainForm == null)
     {
         mainForm = new TabbedUI();
     }
     this.MainForm = mainForm;
 }
        public SingleInstanceController(string[] filesToOpen)
        {
            this.IsSingleInstance = true;

            this.StartupNextInstance += new
                                        StartupNextInstanceEventHandler(this_StartupNextInstance);

            mainForm = new TabbedUI(filesToOpen);
        }