- Timestamp:
- 12/04/08 17:33:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs
r831 r912 30 30 using HeuristicLab.Hive.Contracts.Interfaces; 31 31 using HeuristicLab.Hive.Contracts.BusinessObjects; 32 using HeuristicLab.Hive.Contracts; 32 33 33 34 namespace HeuristicLab.Hive.Server.Console { … … 40 41 InitializeComponent(); 41 42 tbIp.Text = "10.20.53.1"; 43 tbPort.Text = "9000"; 42 44 } 43 45 … … 53 55 /// <param name="e"></param> 54 56 private void btnLogin_Click(object sender, EventArgs e) { 55 if (i pIsValid()) {57 if (isValid()) { 56 58 string newIp = tbIp.Text; 57 59 newIp = newIp.Replace(" ", ""); … … 68 70 69 71 70 private static bool ipIsValid() { 71 72 private bool isValid() { 73 if ((tbUserName.Text != "") && 74 (tbPwd.Text != "") && 75 (tbIp.Text != "") && 76 (tbPort.Text != "")) { 77 try { 78 IJobManager jobManager = 79 ServiceLocator.GetJobManager(); 80 ResponseList<Job> jobs = jobManager.GetAllJobs(); 81 jobs = jobManager.GetAllJobs(); 82 } 83 catch (Exception ex) { 84 lblError.Text = "Server not online"; 85 return false; 86 } 87 return true; 88 } 72 89 // TODO IP-Adress validation 73 return true;90 return false; 74 91 } 75 92
Note: See TracChangeset
for help on using the changeset viewer.