Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 4316 was 4316, checked in by cneumuel, 14 years ago

made streaming wcf-services work with Transport-Security and net.tcp but with Message-Level Credentials (#1168)

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