コード例 #1
0
        private void ButtonAccidentDate_Click(object sender, EventArgs e)
        {
            FormSurveyDate ad = new FormSurveyDate();

            ad.Text = "Select Accident Date";
            ad.setText("Select the date the accident took place.");
            ad.ShowDialog();
            accidentDate.Text = Util.SortableDate(ad.getDate());
            ad.Close();
        }
コード例 #2
0
 /// <summary>
 /// Sets the survey date for the module to the current selected date in the dateform
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 protected void setDate(object sender, EventArgs args)
 {
     surveyDate = dateForm.getDate();
 }