Пример #1
0
 private void RestartButton_Click_1(object sender, EventArgs e)
 {
     resetSeenJokes();
     RestartButton.Hide();
     JokeResult.Show();
     Notification.Text = "";
     JokeResult.Text   = "Prepare for LULZ.";
     JokeButton.Show();
     Like.Show();
     Dislike.Show();
     Settings.Default.CurrentJoke = 0;
     Settings.Default.Save();
 }
Пример #2
0
 private void Reset_Click(object sender, EventArgs e)
 {
     RestartButton.Hide();
     JokeResult.Show();
     JokeResult.BackColor = Color.BlanchedAlmond;
     Notification.Text    = "";
     JokeResult.Text      = "Prepare for LULZ.";
     JokeButton.Show();
     Like.Show();
     Dislike.Show();
     Settings.Default.CurrentJoke = 0;
     for (int i = 0; i < Settings.Default.LikeOrDislike.Count; i++)
     {
         Settings.Default.LikeOrDislike[i] = "0";
         Settings.Default.JokeSeen[i]      = "0";
         Settings.Default.Save();
     }
     Settings.Default.Save();
 }