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(); } }
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(); } }