Changeset 2065 for trunk/sources/HeuristicLab.Hive.Server/3.2/MainForm.cs
- Timestamp:
- 06/19/09 12:06:02 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server/3.2/MainForm.cs
r1530 r2065 7 7 using System.Text; 8 8 using System.Windows.Forms; 9 using HeuristicLab.Hive.Server.Properties; 9 10 10 11 namespace HeuristicLab.Hive.Server … … 13 14 public MainForm(Dictionary<string, Uri> addresses) { 14 15 InitializeComponent(); 16 this.Visible = false; 17 15 18 Uri uri; 19 StringBuilder servicesTxt = new StringBuilder(); 16 20 addresses.TryGetValue(HiveServerApplication.STR_ClientCommunicator, out uri); 17 if (uri!=null)18 this.lblAddress1.Text = uri.ToString();21 if (uri != null) 22 servicesTxt.AppendLine(String.Format("Server Client: {0}", uri)); 19 23 addresses.TryGetValue(HiveServerApplication.STR_ServerConsoleFacade, out uri); 20 24 if (uri != null) 21 this.lblAddress2.Text = uri.ToString();25 servicesTxt.AppendLine(String.Format("Server Console: {0}", uri)); 22 26 addresses.TryGetValue(HiveServerApplication.STR_ExecutionEngineFacade, out uri); 23 27 if (uri != null) 24 this.lblAddress3.Text = uri.ToString(); 28 servicesTxt.AppendLine(String.Format("Execution Engine: {0}", uri)); 29 30 rtfServices.AppendText(servicesTxt.ToString()); 31 32 ni.Icon = Resources.HeuristicLab; 33 ni.BalloonTipTitle = "HL Hive Server Services"; 34 ni.BalloonTipText = servicesTxt.ToString(); 35 ni.BalloonTipIcon = ToolTipIcon.Info; 36 ni.Text = "HL Hive Server Services"; 37 ni.ShowBalloonTip(10000); 38 } 39 40 private void CloseApp(object sender, EventArgs e) { 41 Dispose(); 42 } 43 44 private void ShowInfo(object sender, EventArgs e) { 45 this.Visible = true; 46 } 47 48 private void btnClose_Click(object sender, EventArgs e) { 49 this.Visible = false; 25 50 } 26 51
Note: See TracChangeset
for help on using the changeset viewer.