diff options
author | Joe George <joe@zeroc.com> | 2014-12-18 10:32:37 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2014-12-18 10:33:36 -0500 |
commit | ed2da48e5c0636c7fcd95d54cd50bf38f8ecda98 (patch) | |
tree | 80d762ac1b592fea5dc29ceef7c396cb3db36855 /cs/demo/Ice/wpf/HelloWindow.xaml.cs | |
parent | Minor update to testicedist.py (diff) | |
download | ice-ed2da48e5c0636c7fcd95d54cd50bf38f8ecda98.tar.bz2 ice-ed2da48e5c0636c7fcd95d54cd50bf38f8ecda98.tar.xz ice-ed2da48e5c0636c7fcd95d54cd50bf38f8ecda98.zip |
Fixes and cleanup to ICE-6169
Diffstat (limited to 'cs/demo/Ice/wpf/HelloWindow.xaml.cs')
-rw-r--r-- | cs/demo/Ice/wpf/HelloWindow.xaml.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/cs/demo/Ice/wpf/HelloWindow.xaml.cs b/cs/demo/Ice/wpf/HelloWindow.xaml.cs index 0756345685e..c36becb8e8c 100644 --- a/cs/demo/Ice/wpf/HelloWindow.xaml.cs +++ b/cs/demo/Ice/wpf/HelloWindow.xaml.cs @@ -123,7 +123,7 @@ namespace Ice.wpf.client private void sayHello_Click(object sender, RoutedEventArgs e) { - if (_helloPrx == null) + if(_helloPrx == null) { updateProxy(); } @@ -237,12 +237,7 @@ namespace Ice.wpf.client return; } String host = hostname.Text.Trim(); - if(host.Length == 0) - { - status.Content = "No hostname"; - _helloPrx = null; - return; - } + Debug.Assert(host.Length > 0); String s = "hello:tcp -h " + host + " -p 10000:ssl -h " + host + " -p 10001:udp -h " + host + " -p 10000"; Ice.ObjectPrx prx = _communicator.stringToProxy(s); @@ -296,6 +291,10 @@ namespace Ice.wpf.client { flush.IsEnabled = false; } + if(status != null) + { + status.Content = "No hostname"; + } } else { @@ -311,7 +310,10 @@ namespace Ice.wpf.client { flush.IsEnabled = false; } - + if(status != null) + { + status.Content = "Ready"; + } } _helloPrx = null; } |