예제 #1
0
        private void InitFilter()
        {
            if (this.Tournament == null)
            {
                return;
            }

            if (this.Tournament != null)
            {
                Filter.Clear();

                if (Tournament.TournamentTypeE == TournamentTypeE.Knockout)
                {
                    Filter.Add("Round", "Round");
                    Filter.Add("Lose", "Lose");
                    Filter.Add("Win", "Win");
                }
                else
                {
                    Filter.Add("Player", "Player");
                    Filter.Add("Rank", "Rank");
                    Filter.Add("Rating", "Rating");
                    Filter.Add("TotalPoints", "Total Points");
                }
            }

            toolStripcmbSearch.ComboBox.DataSource    = Filter.DataTable;
            toolStripcmbSearch.ComboBox.DisplayMember = "Value";
            toolStripcmbSearch.ComboBox.ValueMember   = "Key";
            toolStripcmbSearch.ComboBox.SelectedIndex = 0;
        }
예제 #2
0
 public void Dispose()
 {
     FilterItems.Clear();
     foreach (var ownedFilterItem in m_ownedFilterItems)
     {
         ownedFilterItem.Dispose();
     }
     m_ownedFilterItems.Clear();
 }
        private void InitFilter()
        {
            if (this.Tournament == null)
            {
                return;
            }

            if (this.Tournament != null)
            {
                Filter.Clear();

                Filter.Add("Round", "Round");
                Filter.Add("White", "White");
                Filter.Add("Black", "Black");
            }

            toolStripcmbSearch.ComboBox.DataSource    = Filter.DataTable;
            toolStripcmbSearch.ComboBox.DisplayMember = "Value";
            toolStripcmbSearch.ComboBox.ValueMember   = "Key";
            toolStripcmbSearch.ComboBox.SelectedIndex = 0;
        }
예제 #4
0
        private void InitFilter()
        {
            if (this.Tournament == null)
            {
                return;
            }

            if (this.Tournament != null)
            {
                Filter.Clear();

                Filter.Add("Player", "Player");
                Filter.Add("Rank", "Rank");
                Filter.Add("Rating", "Rating");
                Filter.Add("TotalPoints", "Total Points");
            }

            toolStripcmbSearch.ComboBox.DataSource    = Filter.DataTable;
            toolStripcmbSearch.ComboBox.DisplayMember = "Value";
            toolStripcmbSearch.ComboBox.ValueMember   = "Key";
            toolStripcmbSearch.ComboBox.SelectedIndex = 0;
        }