- Timestamp:
- 05/10/10 15:37:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/AboutDialog.cs
r3736 r3742 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.ComponentModel; … … 27 48 imageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.Plugin); 28 49 pictureBox.Image = HeuristicLab.PluginInfrastructure.Resources.Logo_white; 50 licenseTextBox.Text = HeuristicLab.PluginInfrastructure.Resources.LicenseText; 29 51 UpdatePluginList(ApplicationManager.Manager.Plugins); 30 52 ActiveControl = okButton; … … 50 72 private ListViewItem CreateListViewItem(IPluginDescription plugin) { 51 73 ListViewItem item = new ListViewItem(new string[] { plugin.Name, plugin.Version.ToString(), plugin.Description }); 74 item.Tag = plugin; 52 75 item.ImageIndex = 0; 53 76 return item; … … 76 99 Close(); 77 100 } 101 102 private void pluginListView_ItemActivate(object sender, EventArgs e) { 103 if(pluginListView.SelectedItems.Count > 0) { 104 PluginView view = new PluginView((IPluginDescription)pluginListView.SelectedItems[0].Tag); 105 view.Show(); 106 } 107 } 108 109 private void licenseTextBox_LinkClicked(object sender, LinkClickedEventArgs e) { 110 System.Diagnostics.Process.Start(e.LinkText); 111 } 112 113 private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { 114 System.Diagnostics.Process.Start(linkLabel.Text); 115 } 78 116 } 79 117 }
Note: See TracChangeset
for help on using the changeset viewer.