Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/05/09 14:40:53 (15 years ago)
Author:
kgrading
Message:

added calendar behavior in the whole application (#669)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/WcfService.cs

    r1959 r2025  
    7676    public void Connect() {
    7777      try {
     78        if (String.Empty.Equals(ServerIP) || ServerPort == 0) {
     79          Logging.Instance.Info(this.ToString(), "No Server IP or Port set!");
     80          return;
     81        }
    7882        proxy = new ClientFacadeClient(
    7983          WcfSettings.GetStreamedBinding(),
     
    118122          ServerChanged(this, new EventArgs());
    119123    }
     124
     125    public void SetIPAndPort(String serverIP, int serverPort) {
     126      this.ServerIP = serverIP;
     127      this.ServerPort = serverPort;
     128    }
    120129   
    121130    /// <summary>
     
    159168          if (!res.Success) {
    160169            Logging.Instance.Error(this.ToString(), "Login Failed! " + res.StatusMessage);
    161             HandleNetworkError(null);
     170            HandleNetworkError(new Exception(res.StatusMessage));
    162171          } else {
    163172            ConnState = NetworkEnum.WcfConnState.Loggedin;
Note: See TracChangeset for help on using the changeset viewer.