private void TTform_Load(object sender, EventArgs e) { if (Screen.AllScreens.Length >= 1) { // Get the data of the second monitor var monitor = Screen.AllScreens[2].WorkingArea; // Change the window to the second monitor and lower the form so it doesn't start ontop of the even strength one Location = new Point(monitor.Location.X, monitor.Location.Y + 785); // Lower the position of the form by the max Y of an even strength form. } // Check to make sure the team is not empty before setting textbox's NHLTeam nhlteam = (Methods.SelectCurrent() != null) ? JsonConvert.DeserializeObject <NHLTeam>(Methods.SelectCurrent()) : new NHLTeam(); if (nhlteam.TTL[0] != null) { // Go through each powerplay unit foreach (ThreeOnThreeLines unit in nhlteam.TTL) { int line = unit.Unit; switch (line) { case 1: TTC1tb.Text = unit.Center; TTW1tb.Text = unit.Wing; TTD1tb.Text = unit.Defence; break; case 2: TTC2tb.Text = unit.Center; TTW2tb.Text = unit.Wing; TTD2tb.Text = unit.Defence; break; case 3: TTC3tb.Text = unit.Center; TTW3tb.Text = unit.Wing; TTD3tb.Text = unit.Defence; break; } } } }