Changeset 3474 for trunk/sources/HeuristicLab.PluginInfrastructure/Starter
- Timestamp:
- 04/21/10 20:05:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/StarterForm.cs
r3289 r3474 62 62 pluginManager.DiscoverAndCheckPlugins(); 63 63 64 applicationsListView.Items.Clear(); 65 66 pluginManagerListViewItem = new ListViewItem("Plugin Manager", 0); 67 pluginManagerListViewItem.Group = applicationsListView.Groups["Plugin Management"]; 68 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, "-")); 69 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, "Install, upgrade or delete plugins")); 70 pluginManagerListViewItem.ToolTipText = "Install, upgrade or delete plugins"; 71 72 applicationsListView.Items.Add(pluginManagerListViewItem); 73 74 foreach (ApplicationDescription info in pluginManager.Applications) { 75 ListViewItem item = new ListViewItem(info.Name, 0); 76 item.Tag = info; 77 item.Group = applicationsListView.Groups["Applications"]; 78 item.SubItems.Add(new ListViewItem.ListViewSubItem(item, info.Version.ToString())); 79 item.SubItems.Add(new ListViewItem.ListViewSubItem(item, info.Description)); 80 item.ToolTipText = info.Description; 81 applicationsListView.Items.Add(item); 82 } 64 UpdateApplicationsList(); 83 65 } 84 66 … … 112 94 try { 113 95 Cursor = Cursors.AppStarting; 114 InstallationManagerForm form = new InstallationManagerForm( );96 InstallationManagerForm form = new InstallationManagerForm(pluginManager); 115 97 this.Visible = false; 116 98 form.ShowDialog(this); 117 // RefreshApplicationsList();99 UpdateApplicationsList(); 118 100 this.Visible = true; 119 101 } … … 129 111 } 130 112 113 private void UpdateApplicationsList() { 114 applicationsListView.Items.Clear(); 115 116 pluginManagerListViewItem = new ListViewItem("Plugin Manager", 0); 117 pluginManagerListViewItem.Group = applicationsListView.Groups["Plugin Management"]; 118 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, "-")); 119 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, "Install, upgrade or delete plugins")); 120 pluginManagerListViewItem.ToolTipText = "Install, upgrade or delete plugins"; 121 122 applicationsListView.Items.Add(pluginManagerListViewItem); 123 124 foreach (ApplicationDescription info in pluginManager.Applications) { 125 ListViewItem item = new ListViewItem(info.Name, 0); 126 item.Tag = info; 127 item.Group = applicationsListView.Groups["Applications"]; 128 item.SubItems.Add(new ListViewItem.ListViewSubItem(item, info.Version.ToString())); 129 item.SubItems.Add(new ListViewItem.ListViewSubItem(item, info.Description)); 130 item.ToolTipText = info.Description; 131 applicationsListView.Items.Add(item); 132 } 133 } 134 131 135 private void StartApplication(ApplicationDescription app) { 132 //new SplashScreen(pluginManager, 2000, );133 136 splashScreen.Show("Loading " + app.Name); 134 137 Thread t = new Thread(delegate() {
Note: See TracChangeset
for help on using the changeset viewer.