Ejemplo n.º 1
0
 /// <summary>
 /// Creates an instance of the dialog
 /// </summary>
 /// <param name="param">The parameter this element represents</param>
 public DateTimeElement(DateTimeParam param)
 {
     //Needed by the designer
     InitializeComponent();
     Param = param;
     if (param.Value > _dateTimePicker2.MinDate)
     {
         _dateTimePicker2.Value = param.Value;
     }
     GroupBox.Text = param.Name;
     //We save the parameters passed in
     Refresh();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an instance of the dialog
 /// </summary>
 /// <param name="param">The parameter this element represents</param>
 public DateTimeElement(DateTimeParam param)
 {
     //Needed by the designer
     InitializeComponent();
     Param = param;
     if (param.Value > _dateTimePicker2.MinDate)
     {
         _dateTimePicker2.Value = param.Value;
     }
     GroupBox.Text = param.Name;
     //We save the parameters passed in
     Refresh();
 }