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);
 }
예제 #2
0
        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);
        }