Changeset 3904 for trunk/sources/HeuristicLab.Problems.ExternalEvaluation.Views/3.3/EvaluationTCPChannelView.cs
- Timestamp:
- 06/08/10 17:46:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation.Views/3.3/EvaluationTCPChannelView.cs
r3896 r3904 84 84 portTextBox.Text = Content.Port.ToString(); 85 85 } 86 SetEnabledStateOfControls();87 86 } 88 87 89 protected override void OnReadOnlyChanged() { 90 base.OnReadOnlyChanged(); 91 SetEnabledStateOfControls(); 92 } 93 94 private void SetEnabledStateOfControls() { 88 protected override void SetEnabledStateOfControls() { 89 base.SetEnabledStateOfControls(); 95 90 bool readOnlyDriverNullOrStarted = ReadOnly || Content == null || Content.IsInitialized; 96 91 ipAddressTextBox.Enabled = !readOnlyDriverNullOrStarted; … … 105 100 try { 106 101 System.Net.IPAddress.Parse(ipAddressTextBox.Text); 107 } catch (FormatException) { 102 } 103 catch (FormatException) { 108 104 e.Cancel = true; 109 105 } … … 121 117 try { 122 118 Content.Open(); 123 } catch (Exception ex) { 119 } 120 catch (Exception ex) { 124 121 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 125 122 } … … 128 125 try { 129 126 Content.Close(); 130 } catch (Exception ex) { 127 } 128 catch (Exception ex) { 131 129 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 132 130 }
Note: See TracChangeset
for help on using the changeset viewer.