/// <summary> /// Attach the current project with module loading /// </summary> protected override void Load(IModuleManager moduleManager, ICommandLine commandLine) { base.Load(moduleManager, commandLine); try { if (form == null) { // Create main form form = new MenuMainForm(this); container.Add(form); form.Closed += new EventHandler(MainForm_Closed); form.Disposed += new EventHandler(MainForm_Disposed); // Fill the contents of the form //processor = new MenuCommandProcessor(this, form, Files.MnuFilePath); try { // processor.FillForm(); } catch (Exception ex) { // For now, show the exception and move on. MsgBox.ShowException(ex); } // Display the form form.Show(); form.Activate(); // assure handle creation System.IntPtr handle = form.Handle; //// read the command line //if (commandLine != null) //{ // string titleArgument = commandLine.GetArgument("title"); // if (titleArgument != null) // { // form.Text = titleArgument; // } //} base.OnLoaded(); } else { if (!form.IsDisposed) { form.Show(); if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); } } } catch (Exception ex) { MsgBox.ShowException(ex); } finally { } }
public ManualProcessor(MenuWindowsModule mod, MenuMainForm frm, string mnuFile) { }