public TickerFileViewModel(string name, IAsyncResult<Ticker> asyncTicker) { this.dispatcher = Dispatcher.CurrentDispatcher; this.Name = name; this.AsyncTicker = asyncTicker; asyncTicker.AddCallback(x => HandleLoaded()); this.CloseCommand = new DelegateCommand(() => CloseCommandExecuted(this)); }
public SummaryGroupViewModel(IAsyncResult<IResultAnalyzer> analyzer, SimulationResult result) { this.Name = "Loading ..."; this.LoadState = AsyncState.Running; this.analyzer = analyzer; this.result = result; this.dispatcher = Dispatcher.CurrentDispatcher; analyzer.AddCallback(x => HandleAnalyzerLoaded()); }