Exemplo n.º 1
0
        public UIClient()
        {
            InitializeComponent();

            _inputManager  = new WinFormInputManager();
            _outputManager = new WinFormOutputManager {
                OutSource = errorLabel
            };
            _safeExecuteManager = new SafeExecuteManager(_outputManager);
            _downloadManager    = new HttpDownloadManager();
        }
Exemplo n.º 2
0
        public UIClient()
        {
            InitializeComponent();

            _outputManager = new WinFormOutputManager {
                OutSource = errorLabel
            };
            _safeExecuteManager = new SafeExecuteManager(_outputManager);
            _orderService       = new OrderService();
            _productsService    = new ProductsService();

            productsListBox.DataSource = _productsService.GetAllProducts();
            _order = new Order();
        }