Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/08 11:44:52 (15 years ago)
Author:
aleitner
Message:

Expeption Handling (#380)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs

    r912 r935  
    5555    /// <param name="e"></param>
    5656    private void btnLogin_Click(object sender, EventArgs e) {
     57      string newIp = tbIp.Text;
     58      newIp = newIp.Replace(" ", "");
     59
     60      ServiceLocator.Address = newIp;
     61      ServiceLocator.Port = this.tbPort.Text;
     62 
    5763      if (isValid()) {
    58         string newIp = tbIp.Text;
    59         newIp = newIp.Replace(" ", "");
    60 
    61         ServiceLocator.Address = newIp;
    62         ServiceLocator.Port = this.tbPort.Text;
    63 
    6464        this.Visible = false;
    6565        information = new HiveServerManagementConsole();
     
    8686        }
    8787        return true;
     88      } else {
     89        if (tbUserName.Text == "") {
     90          lblError.Text = "Please type in Username";
     91        } else if (tbPwd.Text == "") {
     92          lblError.Text = "Please type in Password";
     93        } else if (tbPort.Text == "") {
     94          lblError.Text = "Please type in Port";
     95        }
     96        return false;
    8897      }
    89       // TODO IP-Adress validation
    90       return false;
    9198    }
    9299
Note: See TracChangeset for help on using the changeset viewer.