Ejemplo n.º 1
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);
 }
Ejemplo n.º 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);
        }