예제 #1
0
 private void RestartExcuses_Click(object sender, EventArgs e)
 {
     resetSeenExcuses();
     RestartExcuses.Hide();
     ExcuseText.Show();
     ExcuseButton.Show();
     BackButton.Hide();
     ForwardButton.Hide();
     ExcuseNotification.Text = "";
     ExcuseText.Text         = "Excuses Ahead...";
     BackBox.Items.Clear();
     ForwardBox.Items.Clear();
     BackBox.EndUpdate();
     ForwardBox.EndUpdate();
     Count = 0;
     Settings.Default.CurrentExcuse = 0;
     Settings.Default.Save();
 }
예제 #2
0
 private void ResetExcuses_Click(object sender, EventArgs e)
 {
     RestartExcuses.Hide();
     ExcuseText.Show();
     ExcuseButton.Show();
     BackButton.Hide();
     ForwardButton.Hide();
     CopyButton.Hide();
     SendToEmail.Hide();
     ExcuseNotification.Text = "";
     ExcuseText.Text         = "Excuses Ahead...";
     BackBox.Items.Clear();
     ForwardBox.Items.Clear();
     BackBox.EndUpdate();
     ForwardBox.EndUpdate();
     Count = 0;
     Settings.Default.CurrentExcuse = 0;
     for (int i = 0; i < Settings.Default.ExcuseSeen.Count; i++)
     {
         Settings.Default.ExcuseSeen[i] = "0";
         Settings.Default.Save();
     }
     Settings.Default.Save();
 }