Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/09 12:06:02 (15 years ago)
Author:
mbecirov
Message:

#586: Added authorization components.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server/3.2/MainForm.cs

    r1530 r2065  
    77using System.Text;
    88using System.Windows.Forms;
     9using HeuristicLab.Hive.Server.Properties;
    910
    1011namespace HeuristicLab.Hive.Server
     
    1314        public MainForm(Dictionary<string, Uri> addresses) {
    1415          InitializeComponent();
     16          this.Visible = false;
     17
    1518          Uri uri;
     19          StringBuilder servicesTxt = new StringBuilder();
    1620          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));
    1923          addresses.TryGetValue(HiveServerApplication.STR_ServerConsoleFacade, out uri);
    2024          if (uri != null)
    21             this.lblAddress2.Text = uri.ToString();
     25            servicesTxt.AppendLine(String.Format("Server Console: {0}", uri));
    2226          addresses.TryGetValue(HiveServerApplication.STR_ExecutionEngineFacade, out uri);
    2327          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;
    2550        }
    2651
Note: See TracChangeset for help on using the changeset viewer.