예제 #1
0
 public MainForm()
 {
     InitializeComponent();
     question = new QuestionData(); //constructs to latest question
     if(!Properties.Settings.Default.today)
         question = new QuestionData(Properties.Settings.Default.year, Properties.Settings.Default.month,
             Properties.Settings.Default.date);
     calendar.MinDate = QuestionData.MIN_DATE;
     calendar.MaxDate = DateTime.Now;
     menuStrip1.Visible = false; //work on this later
     browser.ScriptErrorsSuppressed = true; // js erros in IE don't need to interrupt the user
 }
예제 #2
0
 private void Random()
 {
     question = question.GetRandomQuestion();
     Browse();
 }
예제 #3
0
 private void Oldest()
 {
     question = question.GetOldest();
     Browse();
 }
예제 #4
0
 private void Previous()
 {
     question = question.GetPreviousQuestion();
     Browse();
 }
예제 #5
0
 private void Next()
 {
     question = question.GetNextQuestion();
     Browse();
 }
예제 #6
0
 private void Newest()
 {
     question = question.GetNewest();
     Browse();
 }
예제 #7
0
 private void calendar_CloseUp(object sender, EventArgs e)
 {
     DateTime selectedDate = calendar.Value;
     question = new QuestionData(selectedDate.Year, selectedDate.Month, selectedDate.Day);
     Browse();
 }
예제 #8
0
 private void btnRightSubject_Click(object sender, EventArgs e)
 {
     question = question.GetNextSubject();
     Browse();
 }
예제 #9
0
 private void btnLeftSubject_Click(object sender, EventArgs e)
 {
     question = question.GetPreviousSubject();
     Browse();
 }