private void InitFilter()
        {
            Filter.Add("Player1", "White");
            Filter.Add("Player2", "Black");
            Filter.Add("WRating", "White Rating");
            Filter.Add("WRank", "White Rank");
            Filter.Add("BRating", "Black Rating");
            Filter.Add("BRank", "Black Rank");
            Filter.Add("Round", "Round");
            Filter.Add("GameResult", "Match Status");

            if (this.Tournament == null)
            {
                return;
            }

            if (this.Tournament.TournamentID == 0)
            {
                return;
            }

            if (this.Tournament.TournamentTypeIDE == TournamentTypeE.Scheveningen)
            {
                Filter.Add("TeamW", "White Team");
                Filter.Add("TeamB", "Black Team");
            }

            tsCombo.ComboBox.DataSource    = Filter.DataTable;
            tsCombo.ComboBox.DisplayMember = "Value";
            tsCombo.ComboBox.ValueMember   = "Key";
            //tsCombo.ComboBox.SelectedIndex = 0;
        }
        private void InitFilter()
        {
            Filter.Add("TeamName", "Team Name");
            Filter.Add("Status", "Status");

            toolStripComboBox1.ComboBox.DataSource    = Filter.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
        }
        private void InitTeamFilter()
        {
            FilterTeam.Add("TeamName", "Name");
            FilterTeam.Add("Description", "Description");

            tscombo.ComboBox.DataSource    = FilterTeam.DataTable;
            tscombo.ComboBox.DisplayMember = "Value";
            tscombo.ComboBox.ValueMember   = "Key";
        }
        private void InitFilter()
        {
            Filter.Add("ParentAndChild", "Room Name");
            Filter.Add("Status", "Status");

            toolStripComboBox1.ComboBox.DataSource    = Filter.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
            toolStripComboBox1.ComboBox.SelectedIndex = 0;
        }
        private void InitFilter()
        {
            Filter.Add("Message", "Message");
            Filter.Add("Type", "Type");
            Filter.Add("Category", "Category");

            toolStripComboBox1.ComboBox.DataSource    = Filter.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
            toolStripComboBox1.ComboBox.SelectedIndex = 0;
        }
Exemple #6
0
        private void InitFilter()
        {
            Filter.Add("Name", "Tournament Name");
            Filter.Add("TD", "Tournament Director");
            Filter.Add("TournamentStatus", "Tournament Status");

            toolStripcmbSearch.ComboBox.DataSource    = Filter.DataTable;
            toolStripcmbSearch.ComboBox.DisplayMember = "Value";
            toolStripcmbSearch.ComboBox.ValueMember   = "Key";
            toolStripcmbSearch.ComboBox.SelectedIndex = 0;
        }
        private void InitFilter()
        {
            Filter.Add("UserName", "User Name");
            Filter.Add("FirstName", "First Name");
            Filter.Add("LastName", "Last Name");
            Filter.Add("Country", "Country");

            toolStripComboBox1.ComboBox.DataSource    = Filter.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
        }
        private void InitPlayerFilter()
        {
            FilterPlayer.Add("UserName", "Player Name");
            FilterPlayer.Add("Country", "Country");
            FilterPlayer.Add("Rating", "Rating");
            FilterPlayer.Add("Rank", "Rank");

            toolStripComboBox1.ComboBox.DataSource    = FilterPlayer.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
            //toolStripComboBox1.ComboBox.SelectedIndex = 0;
        }
Exemple #9
0
        private void InitFilter()
        {
            Filter.Add("UserName", "Player Name");
            Filter.Add("Country", "Country");
            Filter.Add("Rating", "Rating");
            Filter.Add("Team", "Team");
            Filter.Add("Rank", "Rank");

            tsCombo.ComboBox.DataSource    = Filter.DataTable;
            tsCombo.ComboBox.DisplayMember = "Value";
            tsCombo.ComboBox.ValueMember   = "Key";
            tsCombo.ComboBox.SelectedIndex = 0;
        }
Exemple #10
0
        private void InitFilter()
        {
            Filter.Add("IPAddress", "IP Address");

            toolStripComboBox1.ComboBox.DataSource    = Filter.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
        }
        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;
        }
Exemple #12
0
        private void InitFilter()
        {
            Filter.Add("TeamName", "Team Name");

            tscombo.ComboBox.DataSource    = Filter.DataTable;
            tscombo.ComboBox.DisplayMember = "Value";
            tscombo.ComboBox.ValueMember   = "Key";
            tscombo.ComboBox.SelectedIndex = 0;
        }
        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;
        }
Exemple #14
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;
        }
        private void InitFilter()
        {
            if (toolStripComboBox1.Items.Count > 0)
            {
                return;
            }

            Filter.Add("UserName", "Name");
            Filter.Add("Status", "Status");
            Filter.Add("Engine", "Engine");
            Filter.Add("BulletElo", "Bullet");
            Filter.Add("BlitzElo", "Blitz");
            Filter.Add("FideTitle", "FIDE");
            Filter.Add("IccfTitle", "ICCF");
            Filter.Add("Internet", "Internet");
            Filter.Add("TeamName", "Team");

            toolStripComboBox1.ComboBox.DataSource    = Filter.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
            toolStripComboBox1.ComboBox.SelectedIndex = 0;
        }
Exemple #16
0
        private void InitFilter()
        {
            if (toolStripComboBox1.Items.Count > 0)
            {
                return;
            }

            Filter.Add("WhiteUserName", "White");
            Filter.Add("BlackUserName", "Black");
            Filter.Add("EloWhiteBefore", "EloWhite");
            Filter.Add("EloBlackBefore", "EloBlack");
            Filter.Add("Result", "Result");
            Filter.Add("TimeControl", "TimeControl");
            Filter.Add("StartTime", "StartTime");
            Filter.Add("Rated", "Type");

            toolStripComboBox1.ComboBox.DataSource    = Filter.DataTable;
            toolStripComboBox1.ComboBox.DisplayMember = "Value";
            toolStripComboBox1.ComboBox.ValueMember   = "Key";
            toolStripComboBox1.ComboBox.SelectedIndex = 0;
        }
Exemple #17
0
 public void Add(FilterItemModel filterItem)
 {
     FilterItems.Add(filterItem);
 }
Exemple #18
0
 public FilterModel(FilterItemModel filterItem)
 {
     FilterItems.Add(filterItem);
 }
Exemple #19
0
 internal ImmutableList <SqlFilterItemCallback> AddItem(SqlFilterItemCallback item)
 => FilterItems.Count == 0 ? FilterItems : FilterItems.Add(item);