/// <summary> /// Ctor. /// </summary> public MainViewModel() { // Initialize variables ConditionViewModel = new RAToolSetWPF.ConditionViewModel(); UserViewModel = new UserViewModel(this); ConsoleList = new ObservableCollection <Console>(); Dispatcher = Dispatcher.CurrentDispatcher; _watch = new Stopwatch(); _getConsolesWorker = new BackgroundWorker(); _getConsolesWorker.DoWork += new DoWorkEventHandler(getConsolesWorker_DoWork); _getGameListWorker = new BackgroundWorker(); _getGameListWorker.DoWork += new DoWorkEventHandler(getGameListWorker_DoWork); _getGameInfoWorker = new BackgroundWorker(); _getGameInfoWorker.DoWork += new DoWorkEventHandler(getGameInfoWorker_DoWork); }
/// <summary> /// Ctor. /// </summary> public MainViewModel() { // Initialize variables ConditionViewModel = new RAToolSetWPF.ConditionViewModel(); UserViewModel = new UserViewModel(this); ConsoleList = new ObservableCollection<Console>(); Dispatcher = Dispatcher.CurrentDispatcher; _watch = new Stopwatch(); _getConsolesWorker = new BackgroundWorker(); _getConsolesWorker.DoWork += new DoWorkEventHandler(getConsolesWorker_DoWork); _getGameListWorker = new BackgroundWorker(); _getGameListWorker.DoWork += new DoWorkEventHandler(getGameListWorker_DoWork); _getGameInfoWorker = new BackgroundWorker(); _getGameInfoWorker.DoWork += new DoWorkEventHandler(getGameInfoWorker_DoWork); }