Example #1
0
 private void btnChangeStartDate_Click(object sender, EventArgs e)
 {
     if (startDateSelector == null || startDateSelector.IsDisposed)
     {
         startDateSelector           = new DateSelector();
         startDateSelector.OK.Click += delegate
         {
             if (startDateSelector.DateIsOK())
             {
                 startDate.Text = startDateSelector.manualDate.Text;
             }
         };
     }
     startDateSelector.Show();
     UIHelper.MakeFormAboveButton(btnChangeStartDate, startDateSelector);
 }
Example #2
0
 private void btnSelectDate_Click(object sender, System.EventArgs e)
 {
     if (dateSelector == null || dateSelector.IsDisposed)
     {
         dateSelector           = new DateSelector();
         dateSelector.OK.Click += delegate
         {
             if (dateSelector.DateIsOK())
             {
                 IngExpireDate.Text = dateSelector.manualDate.Text;
             }
         };
     }
     dateSelector.Show();
     UIHelper.MakeFormAboveButton(btnSelectDate, dateSelector);
 }