Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
        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());
        }