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; }
public CommandServiceContext(CommandService service) { this.Service = service; }