Example #1
0
        public AutoupdaterHandler(IUpdatableTool tool)
        {
            var binder = new BasicHttpBinding {
                MaxReceivedMessageSize = 3145728
            };
            var factory            = new ChannelFactory <IAutoupdaterService>(binder, "http://localhost:1989/Autoupdater.svc");
            var autoupdaterService = factory.CreateChannel();

            new AutoupdaterForm(autoupdaterService, tool);
        }
Example #2
0
        public AutoupdaterForm(IAutoupdaterService autoupdaterService, IUpdatableTool tool)
        {
            _autoupdaterService = autoupdaterService;
            _tool = tool;

            _backgroundWorker.DoWork          += _backgroundWorker_DoWork;
            _backgroundWorker.ProgressChanged += _backgroundWorker_ProgressChanged;

            InitializeComponent();

            ShowDialog();
        }