1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2019 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.Diagnostics;
|
---|
23 | using System.Reflection;
|
---|
24 | using System.Windows.Forms;
|
---|
25 | using HeuristicLab.Core;
|
---|
26 | using HeuristicLab.Core.Views;
|
---|
27 | using HeuristicLab.MainForm;
|
---|
28 |
|
---|
29 | namespace HeuristicLab.Clients.Hive.SlaveCore.Views {
|
---|
30 | [View("About View: Show some information about HeursticLab Hive")]
|
---|
31 | public partial class AboutView : ItemView {
|
---|
32 | public new Item Content {
|
---|
33 | get { return (Item)base.Content; }
|
---|
34 | set { base.Content = value; }
|
---|
35 | }
|
---|
36 |
|
---|
37 | public AboutView() {
|
---|
38 | InitializeComponent();
|
---|
39 | }
|
---|
40 |
|
---|
41 | #region Register Content Events
|
---|
42 | protected override void DeregisterContentEvents() {
|
---|
43 | base.DeregisterContentEvents();
|
---|
44 | }
|
---|
45 | protected override void RegisterContentEvents() {
|
---|
46 | base.RegisterContentEvents();
|
---|
47 | }
|
---|
48 | #endregion
|
---|
49 |
|
---|
50 | protected override void OnContentChanged() {
|
---|
51 | base.OnContentChanged();
|
---|
52 | }
|
---|
53 |
|
---|
54 | protected override void SetEnabledStateOfControls() {
|
---|
55 | base.SetEnabledStateOfControls();
|
---|
56 | }
|
---|
57 |
|
---|
58 | private void AboutView_Load(object sender, System.EventArgs e) {
|
---|
59 | FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
|
---|
60 | string version = versionInfo.FileVersion;
|
---|
61 |
|
---|
62 | versionTextBox.Text = version;
|
---|
63 | }
|
---|
64 |
|
---|
65 | private void webLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) {
|
---|
66 | System.Diagnostics.Process.Start(webLinkLabel.Text);
|
---|
67 | }
|
---|
68 |
|
---|
69 | private void mailLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) {
|
---|
70 | System.Diagnostics.Process.Start("mailto:" + mailLinkLabel.Text);
|
---|
71 | }
|
---|
72 | }
|
---|
73 | }
|
---|