示例#1
0
 /// <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);
 }
示例#2
0
 /// <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);
 }