Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server/3.3/MainForm.cs @ 4710

Last change on this file since 4710 was 4424, checked in by cneumuel, 14 years ago
  • Added and updated License Information in every file
  • Sort and remove usings in every file
  • Deleted obsolete DataAccess.ADOHelper
  • Deleted some obsolete files
File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Windows.Forms;
5
6namespace HeuristicLab.Hive.Server {
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.