private void Generate_CSV_btn_Click(object sender, EventArgs e)
        {
            string fp = FileBuilder.GetFilepath(DocumentFilepaths.PlayersWithProjections, UserBasepath, Date, Basketball);

            FileBuilder.BuildCSV(Players, fp);
            FileBuilder.BuildConfig(Lineups_tb.Text, MaxPrice_tb.Text, WTNR_tb.Text, basepath_tb.Text, Date);
            MessageBox.Show("Success! Your CSV is located at " + fp, "Success", MessageBoxButtons.OK, MessageBoxIcon.None);
        }
        private void Generate_Projections_btn_Click(object sender, EventArgs e)
        {
            string  csharpPath = @"LineupBuilder.exe";
            Process lineupProc = new Process();

            //lineupProc.StartInfo.FileName = pythonPath;
            lineupProc.StartInfo.FileName  = csharpPath;
            lineupProc.StartInfo.Arguments = $"\"{FileBuilder.GetFilepath(DocumentFilepaths.JsonPlayerList, UserBasepath, Week, Football)}\" Football";
            lineupProc.Start();
        }
        private void Start_bb_python_btn_Click(object sender, EventArgs e)
        {
            string  csharpPath = @"C:\Users\15133\Documents\dfs\ProjectionBuilder\NBALineupBuilder\bin\Debug\NBALineupBuilder.exe";
            string  pythonPath = Path.Combine(UserBasepath, "ProjectionBuilder", "python scripts", "dfs-nba-fuel.py");
            Process lineupProc = new Process();

            //lineupProc.StartInfo.FileName = pythonPath;
            lineupProc.StartInfo.FileName  = csharpPath;
            lineupProc.StartInfo.Arguments = $"\"{FileBuilder.GetFilepath(DocumentFilepaths.JsonPlayerList, UserBasepath, Date, Basketball)}\" Basketball";
            lineupProc.Start();
        }
 public FootballBuilder(string week)
 {
     InitializeComponent();
     Week = $"Week {week}";
     lineup_bp_text.Text = FileBuilder.GetFilepath(DocumentFilepaths.TopLineups, UserBasepath, Week, Football);
     FileBuilder.CSVCleaner(FileBuilder.GetFilepath(DocumentFilepaths.PlayerList, UserBasepath, Week, Football));
     Players = BuilderService.SetUpNFLPlayers(FileBuilder.GetFilepath(DocumentFilepaths.PlayerList, UserBasepath, Week, Football));
     Teams   = BuilderService.BuildNFLTeams(Players);
     Games   = BuilderService.BuildNFLGames(Teams);
     ShowTeams();
 }
 public BasketballBuilder(string date)
 {
     InitializeComponent();
     Date_gb.Visible     = false;
     Date                = date;
     lineup_bp_text.Text = FileBuilder.GetFilepath(DocumentFilepaths.TopLineups, UserBasepath, Date, Basketball);
     FileBuilder.CSVCleaner(FileBuilder.GetFilepath(DocumentFilepaths.PlayerList, UserBasepath, Date, Basketball));
     Players = BuilderService.SetUpNBAPlayers(FileBuilder.GetFilepath(DocumentFilepaths.PlayerList, UserBasepath, Date, Basketball));
     Teams   = BuilderService.BuildNBATeams(Players);
     ShowTeams();
     BB_Teams_gb.Visible = true;
     lineup_gb.Visible   = true;
 }
        private void SetUpConfigText()
        {
            DFSConfig config = Newtonsoft.Json.JsonConvert.DeserializeObject <DFSConfig>(File.ReadAllText(FileBuilder.GetFilepath(DocumentFilepaths.DFSConfigFile, UserBasepath, "", Football)));

            Lineups_tb.Text        = config.Lineups.ToString();
            defense_budget_tb.Text = config.DefenseBudget.ToString();
            WTNR_tb.Text           = config.WTNR.ToString();
            MaxPrice_tb.Text       = config.MaxSalary.ToString();
            basepath_tb.Text       = Path.Combine(UserBasepath, "Football");
        }