Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 4501 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
RevLine 
[713]1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Windows.Forms;
5
[4254]6namespace HeuristicLab.Hive.Server {
7  public partial class MainForm : Form {
[4316]8    public MainForm(IEnumerable<Uri> addresses) {
[4254]9      InitializeComponent();
[2065]10
[4254]11      StringBuilder servicesTxt = new StringBuilder();
[4316]12      foreach (Uri uri in addresses) {
13        servicesTxt.AppendLine(uri.ToString());
14      }
[2065]15
[4254]16      rtfServices.AppendText(servicesTxt.ToString());
[2065]17
[4254]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    }
[1120]25
[4254]26    private void CloseApp(object sender, EventArgs e) {
27      this.Dispose();
28      Application.Exit();
29    }
[2065]30
[4254]31    private void ShowInfo(object sender, EventArgs e) {
32      this.Visible = true;
33    }
[2065]34
[4254]35    private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
36      e.Cancel = true;
37      this.Visible = false;
[713]38    }
[4316]39
40    private void ni_MouseClick(object sender, MouseEventArgs e) {
41      ShowInfo(sender, e);
42    }
[4254]43  }
[713]44}
Note: See TracBrowser for help on using the repository browser.