public MainWindow() { InitializeComponent(); model = (DataGridModel)imageFilesGrid.DataContext; 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 WPFNotifier(); manager = new ImageServiceClientManager(channel, notyfier, UpdateImagesInfoGrid); }
public MainWindow() { InitializeComponent(); model = (DataGridModel)imageFilesGrid.DataContext; 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 WPFNotifier(); manager = new ImageServiceClientManager(channel, notyfier, UpdateImagesInfoGrid); }