void setXYPos(bool fullScreen)
{
if (fullScreen)
{
// Calculate and set the x,y position for Label 1
xpos = (Screen.PrimaryScreen.Bounds.Width / 2) - (lbStatus.Width / 2);
ypos = ((Screen.PrimaryScreen.Bounds.Height / 2) - (lbStatus.Height / 2)) - 40;
lbStatus.Location = new Point(xpos, ypos);
// Calculate and set the x,y position for Label 2
xpos = (Screen.PrimaryScreen.Bounds.Width / 2) - (lbStatus2.Width / 2);
ypos = ((Screen.PrimaryScreen.Bounds.Height / 2) - (lbStatus2.Height / 2)) + 40;
lbStatus2.Location = new Point(xpos, ypos);
}
else
{
// Calculate and set the x,y position for Label 1
xpos = (600 / 2) - (lbStatus.Width / 2);
ypos = ((338 / 2) - (lbStatus.Height / 2)) - 20;
lbStatus.Location = new Point(xpos, ypos);
// Calculate and set the x,y position for Label 2
xpos = (600 / 2) - (lbStatus2.Width / 2);
ypos = ((338 / 2) - (lbStatus2.Height / 2)) + 20;
lbStatus2.Location = new Point(xpos, ypos);
}
}