Time Left
Brought to you by:
shaylevi2
it would be nice to show the time left before fold on the client side.
on server side
------------------------------
while (com == null && (DateTime.Now - starttime).Seconds < 20)
{
Thread.Sleep(500);
int left = 15 - (DateTime.Now - starttime).Seconds;
p.Writer.WriteLine("TIME$" + p.Position +"$"+ left + "$");
}
on client side
----------------------
else if (command[0] == "TIME")
{
int pos = int.Parse(command[1]);
int secondsLeft = int.Parse(command[2]);
lblTime.Text = secondsLeft.ToString();
players[pos].Action.Show();
}