示例#1
0
 void Load()
 {
     try
     {
         if (!ViewModel.IsInitialized)
         {
             ViewModel.Load();
             ViewModel.RefreshBalanceCommand.Execute(true);
         }
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }
 private void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     _viewModel.Load();
 }