public ImageServiceClientForm() { InitializeComponent(); IImageService channel = null; try { channelFactory = new ChannelFactory<IImageService>("streamingBinding"); channel = channelFactory.CreateChannel(); } catch (Exception) { MessageBox.Show("Can't create client channel!"); return; } IClientNotifier notyfier = new WindowsFormsNotifier(); manager = new ImageServiceClientManager(channel, notyfier, UpdateImagesInfoGrid); }
public ImageServiceClientForm() { InitializeComponent(); IImageService channel = null; try { channelFactory = new ChannelFactory <IImageService>("streamingBinding"); channel = channelFactory.CreateChannel(); } catch (Exception) { MessageBox.Show("Can't create client channel!"); return; } IClientNotifier notyfier = new WindowsFormsNotifier(); manager = new ImageServiceClientManager(channel, notyfier, UpdateImagesInfoGrid); }