<commit_before>﻿
namespace AllInPoker.Views
{
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;

    /// <summary>
    /// Single Tournament View with players, tables, etc.
    /// </summary>
    public partial class UpcomingTournamentView : Form
    {
        private string TournamentId { get; set; }

        private new string Location { get; set; }
        private List<string> Players { get; set; }
        private List<string> FilteredPlayers { get; set; }
        private int TableCount { get; set; }
        private string Date { get; set; }

        /// <summary>
        /// Initialize TournamentView
        /// </summary>
        /// <param name="id">MySQL Tournament ID</param>
        public UpcomingTournamentView(string id)
        {
            this.TournamentId = id;

            // TODO: Add tables and user view to GUI

            // Temporary variables
            this.Location = id;
            this.Players = new List<string> { "Henk", "Aard", "Erik", "Joop", "Bob", "Marie" };
            this.FilteredPlayers = this.Players;
            this.Date = "15/04/2017";
            this.TableCount = 4;

            // Initialize View Components
            this.InitializeComponent();
            this.Text = "All In Poker - Toernooi " + this.Location;
            this.txtTitle.Text = "Toernooi " + this.Location;
            this.datePicker.Text = this.Date;

            this.lstTournamentPlayers.Columns.Add("Name");
            foreach (string player in this.Players)
            {
                this.lstTournamentPlayers.Items.Add(player);
                this.lstAllPlayers.Items.Add(player + "_");
            }
        }

        /// <summary>
        /// Get the data about the tournament from the database<commit_msg>Fixed datetime set in upcoming tournament view<commit_after>﻿
namespace AllInPoker.Views
{
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;

    /// <summary>
    /// Single Tournament View with players, tables, etc.
    /// </summary>
    public partial class UpcomingTournamentView : Form
    {
        private string TournamentId { get; set; }

        private new string Location { get; set; }
        private List<string> Players { get; set; }
        private List<string> FilteredPlayers { get; set; }
        private int TableCount { get; set; }
        private string Date { get; set; }

        /// <summary>
        /// Initialize TournamentView
        /// </summary>
        /// <param name="id">MySQL Tournament ID</param>
        public UpcomingTournamentView(string id)
        {
            this.TournamentId = id;

            // TODO: Add tables and user view to GUI

            // Temporary variables
            this.Location = id;
            this.Players = new List<string> { "Henk", "Aard", "Erik", "Joop", "Bob", "Marie" };
            this.FilteredPlayers = this.Players;
            this.Date = "2017-04-11";
            this.TableCount = 4;

            // Initialize View Components
            this.InitializeComponent();
            this.Text = "All In Poker - Toernooi " + this.Location;
            this.txtTitle.Text = "Toernooi " + this.Location;
            this.datePicker.Value = DateTime.Parse(this.Date);

            this.lstTournamentPlayers.Columns.Add("Name");
            foreach (string player in this.Players)
            {
                this.lstTournamentPlayers.Items.Add(player);
                this.lstAllPlayers.Items.Add(player + "_");
            }
        }

        /// <summary>
        /// Get the data about the tournament from the database
{'fraction_non_alphanumeric': 0.11102062975027144, 'fraction_numerical': 0.004885993485342019, 'mean_word_length': 1.821592649310873, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6190158', 'n_tokens_mistral': 1029, 'n_tokens_neox': 958, 'n_words': 263}