Changeset 4305 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/HiveExperimentView.cs
- Timestamp:
- 08/24/10 18:37:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/HiveExperimentView.cs
r4170 r4305 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Optimization.Views; 31 using HeuristicLab.Hive.Experiment.Properties; 31 32 32 33 namespace HeuristicLab.Hive.Experiment.Views { … … 82 83 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 83 84 resourceIdsTextBox.Text = Content.ResourceIds; 84 server UrlTextBox.Text = Content.ServerUrl;85 serverIpTextBox.Text = Settings.Default.HiveServerIp; 85 86 experimentNamedItemView.Content = Content.Experiment; 86 87 logView.Content = Content.Log; … … 193 194 194 195 private void serverUrlTextBox_Validating(object sender, System.ComponentModel.CancelEventArgs e) { 195 if (string.IsNullOrEmpty(server UrlTextBox.Text)) {196 if (string.IsNullOrEmpty(serverIpTextBox.Text)) { 196 197 e.Cancel = true; 197 errorProvider.SetError(server UrlTextBox, "ServerUrl cannot be empty");198 server UrlTextBox.SelectAll();198 errorProvider.SetError(serverIpTextBox, "ServerUrl cannot be empty"); 199 serverIpTextBox.SelectAll(); 199 200 return; 200 201 } 201 Content.ServerUrl = serverUrlTextBox.Text;202 Settings.Default.HiveServerIp = serverIpTextBox.Text; 202 203 } 203 204 204 205 private void serverUrlTextBox_Validated(object sender, EventArgs e) { 205 errorProvider.SetError(server UrlTextBox, string.Empty);206 errorProvider.SetError(serverIpTextBox, string.Empty); 206 207 } 207 208
Note: See TracChangeset
for help on using the changeset viewer.