private void RankingViewerUI_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (Visibility == System.Windows.Visibility.Visible)
            {
                //Ranking rank = new Ranking(startDate, finalDate, 1);
                Ranking rank = new Ranking(startDate, finalDate);

                grid.ItemsSource = FilesAccess.db.player.OrderByDescending(x => x.currentPoints);
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     int champ = -1;
     try
     {
         champ = FilesAccess.db.championships.Single(x => x.Name == comboBox1.Text).Id;
     }
     catch { }
     Ranking rank = new Ranking(startDate, finalDate, champ);
     dataGridView1.DataSource = ((DataSet1.playerRow[])(FilesAccess.db.player.Select("currentGames>0"))).OrderByDescending(x => x.currentPoints).ToList();
 }
        private void RankingViewerUI_VisibleChanged(object sender, EventArgs e)
        {
            if (Visible)
            {
                //Ranking rank = new Ranking(startDate, finalDate, 1);
                Ranking rank = new Ranking(startDate, finalDate);
                dataGridView1.DataSource = FilesAccess.db.player.OrderByDescending(x => x.currentPoints).ToList();

                comboBox1.Items.Clear();
                comboBox1.Items.Add("All");
                for (int i = 0; i < FilesAccess.db.championships.Count; i++)
                {
                    comboBox1.Items.Add(FilesAccess.db.championships[i].Name);
                }
            }
        }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Ranking rank = new Ranking(startDate, finalDate, 1);
     grid.ItemsSource = FilesAccess.db.player.OrderByDescending(x => x.currentPoints);
 }
예제 #5
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Ranking rank = new Ranking(startDate, finalDate, 1);

            grid.ItemsSource = FilesAccess.db.player.OrderByDescending(x => x.currentPoints);
        }