Changeset 2488 for branches/PluginInfrastructure Refactoring/HeuristicLab
- Timestamp:
- 11/12/09 17:45:45 (15 years ago)
- Location:
- branches/PluginInfrastructure Refactoring/HeuristicLab
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab/MainForm.cs
r2481 r2488 37 37 private ListViewItem pluginManagerListViewItem; 38 38 private bool abortRequested; 39 private PluginManager pluginManager; 39 40 40 41 public MainForm() … … 43 44 44 45 abortRequested = false; 45 PluginManagerpluginManager = new PluginManager(HeuristicLab.PluginInfrastructure.Properties.Settings.Default.PluginDir);46 pluginManager = new PluginManager(HeuristicLab.PluginInfrastructure.Properties.Settings.Default.PluginDir); 46 47 SplashScreen splashScreen = new SplashScreen(pluginManager, 1000, "Loading HeuristicLab..."); 47 48 splashScreen.Owner = this; … … 83 84 if (selected == pluginManagerListViewItem) { 84 85 try { 85 Cursor = Cursors.AppStarting;86 ManagerForm form = new ManagerForm();87 this.Visible = false;88 form.ShowDialog(this);89 // RefreshApplicationsList();90 this.Visible = true;86 //Cursor = Cursors.AppStarting; 87 //ManagerForm form = new ManagerForm(); 88 //this.Visible = false; 89 //form.ShowDialog(this); 90 //// RefreshApplicationsList(); 91 //this.Visible = true; 91 92 } 92 93 finally { … … 95 96 } else { 96 97 ApplicationDescription app = (ApplicationDescription)applicationsListView.SelectedItems[0].Tag; 97 SplashScreen splashScreen = new SplashScreen( 2000, "Loading " + app.Name);98 SplashScreen splashScreen = new SplashScreen(pluginManager, 2000, "Loading " + app.Name); 98 99 splashScreen.Owner = this; 99 100 splashScreen.Show(); 100 PluginManager.Manager.Action += new PluginManagerActionEventHandler(splashScreen.Manager_Action);101 101 Thread t = new Thread(delegate() { 102 102 bool stopped = false; … … 104 104 try { 105 105 if (!abortRequested) 106 PluginManager.Manager.Run(app);106 pluginManager.Run(app); 107 107 stopped = true; 108 108 } -
branches/PluginInfrastructure Refactoring/HeuristicLab/Program.cs
r1107 r2488 38 38 Application.Run(new MainForm()); 39 39 } else if (args.Length == 1) { // start specific application 40 PluginManager.Manager.Initialize();40 //PluginManager.Manager.Initialize(); 41 41 42 ApplicationInfo app = null;43 foreach (ApplicationInfo info in PluginManager.Manager.InstalledApplications) {44 if (info.Name == args[0])45 app = info;46 }47 if (app == null) { // application not found48 MessageBox.Show("Cannot start application.\nApplication " + args[0] + " is not installed.\n\nStarting HeuristicLab in normal mode ...",49 "HeuristicLab",50 MessageBoxButtons.OK,51 MessageBoxIcon.Warning);52 Application.EnableVisualStyles();53 Application.SetCompatibleTextRenderingDefault(false);54 Application.Run(new MainForm());55 } else {56 PluginManager.Manager.Run(app);57 }42 //ApplicationInfo app = null; 43 //foreach (ApplicationInfo info in PluginManager.Manager.InstalledApplications) { 44 // if (info.Name == args[0]) 45 // app = info; 46 //} 47 //if (app == null) { // application not found 48 // MessageBox.Show("Cannot start application.\nApplication " + args[0] + " is not installed.\n\nStarting HeuristicLab in normal mode ...", 49 // "HeuristicLab", 50 // MessageBoxButtons.OK, 51 // MessageBoxIcon.Warning); 52 // Application.EnableVisualStyles(); 53 // Application.SetCompatibleTextRenderingDefault(false); 54 // Application.Run(new MainForm()); 55 //} else { 56 // PluginManager.Manager.Run(app); 57 //} 58 58 } 59 59 }
Note: See TracChangeset
for help on using the changeset viewer.