Exemplo n.º 1
0
        public ProgressWindow(CommandService commandService)
        {
            InitializeComponent();
            this.Closing += ProgressWindow_Closing;
            this.ProgressListBox.ItemsSource = _ProcessProgressExecutedEventArgsList;
            BindingOperations.EnableCollectionSynchronization(_ProcessProgressExecutedEventArgsList, _ProcessProgressExecutedEventArgsListLock);

            _CommandService = commandService;
            var sv = commandService;
            sv.Dispatcher = this.Dispatcher;
            sv.ProcessProgress += CommandService_ProcessProgress;
            sv.Completed += CommandService_Completed;

            AValue.ConfigData.ImportObjectWindow.Initialize(this);

            this.Loaded += ProgressWindow_Loaded;
        }
Exemplo n.º 2
0
 public CommandServiceContext(CommandService service)
 {
     this.Service = service;
 }