Пример #1
0
 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);
 }
Пример #2
0
        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);
        }