Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }