Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using System.Windows.Forms;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.Services.Hive.Standalone {
|
---|
7 | public partial class MainForm : Form {
|
---|
8 | public MainForm(IEnumerable<Uri> addresses) {
|
---|
9 | InitializeComponent();
|
---|
10 |
|
---|
11 | StringBuilder servicesTxt = new StringBuilder();
|
---|
12 | foreach (Uri uri in addresses) {
|
---|
13 | servicesTxt.AppendLine(uri.ToString());
|
---|
14 | }
|
---|
15 |
|
---|
16 | rtfServices.AppendText(servicesTxt.ToString());
|
---|
17 |
|
---|
18 | ni.Icon = HeuristicLab.Common.Resources.HeuristicLab.Icon;
|
---|
19 | ni.BalloonTipTitle = "HL Hive Server Services";
|
---|
20 | ni.BalloonTipText = servicesTxt.ToString();
|
---|
21 | ni.BalloonTipIcon = ToolTipIcon.Info;
|
---|
22 | ni.Text = "HL Hive Server Services";
|
---|
23 | ni.ShowBalloonTip(10000);
|
---|
24 | }
|
---|
25 |
|
---|
26 | private void CloseApp(object sender, EventArgs e) {
|
---|
27 | this.Dispose();
|
---|
28 | Application.Exit();
|
---|
29 | }
|
---|
30 |
|
---|
31 | private void ShowInfo(object sender, EventArgs e) {
|
---|
32 | this.Visible = true;
|
---|
33 | }
|
---|
34 |
|
---|
35 | private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
|
---|
36 | e.Cancel = true;
|
---|
37 | this.Visible = false;
|
---|
38 | }
|
---|
39 |
|
---|
40 | private void ni_MouseClick(object sender, MouseEventArgs e) {
|
---|
41 | ShowInfo(sender, e);
|
---|
42 | }
|
---|
43 | }
|
---|
44 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.