示例#1
0
 private void btnAdvancedStats_Click(object sender, RoutedEventArgs e)
 {
     if (!DataBaseFactory.Instance.IsAvailable || DailyUsageDAO.Instance.All(Account.Account.Username).Count == 0)
     {
         MessageBox.Show(strings.ClientDashboard_StaticNotAvailable);
     }
     else
     {
         AdvancedStats advancedStats = new AdvancedStats();
         advancedStats.Account = Account.Account.Username;
         advancedStats.LoadData();
         advancedStats.Show();
     }
 }
示例#2
0
 private void btnAdvancedStats_Click(object sender, RoutedEventArgs e)
 {
     if (!DataBaseFactory.Instance.IsAvailable || DailyUsageDAO.Instance.All(Account.Account.Username).Count == 0)
         MessageBox.Show(strings.ClientDashboard_StaticNotAvailable);
     else
     {
         AdvancedStats advancedStats = new AdvancedStats();
         advancedStats.Account = Account.Account.Username;
         advancedStats.LoadData();
         advancedStats.Show();
     }
 }