public Form1() { InitializeComponent(); dt.Columns.Add("Lp."); dt.Columns.Add("Imię"); dt.Columns.Add("Czas"); dt.Columns.Add("Liczba prób"); dt.Columns.Add("Łącznie punktów"); InputBox("Witaj ! jak się nazywasz ?", "Mam na imię :", ref name); TBName.Text = name; drawNumber = 0; Time = 0; Count = 0; PBGame.Hide(); }
private void Stop() { Time = 0; Count = 0; LPointsRes.Text = "0"; LTimeRes.Text = Time.ToString() + " s"; LCountRes.Text = Count.ToString(); LDecide.Text = ""; TBGame.Text = ""; PBGame.Hide(); timer1.Enabled = false; PBLoading.Image = Properties.Resources.wait; LWinNumber.Visible = false; TBGame.Enabled = false; BTNGame.Enabled = false; BTNStop.Enabled = false; PBWinner.Visible = false; BTNRand.Enabled = true; TBFrom.Enabled = true; TBTo.Enabled = true; }