public static LoadHistoricalPriceViewModel LoadViewModel(Action <Task> onLoaded = null) { LoadHistoricalPriceViewModel viewModel = new LoadHistoricalPriceViewModel(); //viewModel.Load().ContinueWith(t => onLoaded?.Invoke(t)); return(viewModel); }
public MainViewModel() { LoadHistoricalPriceViewModel = LoadHistoricalPriceViewModel.LoadViewModel(); }