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 }
private void Random() { question = question.GetRandomQuestion(); Browse(); }
private void Oldest() { question = question.GetOldest(); Browse(); }
private void Previous() { question = question.GetPreviousQuestion(); Browse(); }
private void Next() { question = question.GetNextQuestion(); Browse(); }
private void Newest() { question = question.GetNewest(); Browse(); }
private void calendar_CloseUp(object sender, EventArgs e) { DateTime selectedDate = calendar.Value; question = new QuestionData(selectedDate.Year, selectedDate.Month, selectedDate.Day); Browse(); }
private void btnRightSubject_Click(object sender, EventArgs e) { question = question.GetNextSubject(); Browse(); }
private void btnLeftSubject_Click(object sender, EventArgs e) { question = question.GetPreviousSubject(); Browse(); }