Skip to content

Commit 721e4a5

Browse files
committed
Fixxed issue where text was attempting to be changed for a non-existent program, which caused out of range index exceptions
1 parent 1410f0d commit 721e4a5

File tree

8 files changed

+0
-10
lines changed

8 files changed

+0
-10
lines changed
0 Bytes
Binary file not shown.

ClientCSForm/Form1.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -297,32 +297,22 @@ void UpdateUI()
297297
if (i == 0)
298298
{
299299
ProgramStatusPanel1.Visible = false;
300-
ProgramName1.Text = clnt.ownedPrograms[i].Zip;
301-
ActiveTimeNum1.Text = clnt.ownedPrograms[i].MinutesLeft.ToString();
302300
}
303301
if (i == 1)
304302
{
305303
ProgramStatusPanel2.Visible = false;
306-
ProgramName2.Text = clnt.ownedPrograms[i].Zip;
307-
ActiveTimeNum2.Text = clnt.ownedPrograms[i].MinutesLeft.ToString();
308304
}
309305
if (i == 2)
310306
{
311307
ProgramStatusPanel3.Visible = false;
312-
ProgramName3.Text = clnt.ownedPrograms[i].Zip;
313-
ActiveTimeNum3.Text = clnt.ownedPrograms[i].MinutesLeft.ToString();
314308
}
315309
if (i == 3)
316310
{
317311
ProgramStatusPanel4.Visible = false;
318-
ProgramName4.Text = clnt.ownedPrograms[i].Zip;
319-
ActiveTimeNum4.Text = clnt.ownedPrograms[i].MinutesLeft.ToString();
320312
}
321313
if (i == 4)
322314
{
323315
ProgramStatusPanel5.Visible = false;
324-
ProgramName5.Text = clnt.ownedPrograms[i].Zip;
325-
ActiveTimeNum5.Text = clnt.ownedPrograms[i].MinutesLeft.ToString();
326316
}
327317
}
328318
}
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)