Changeset 1258


Ignore:
Timestamp:
03/05/09 16:38:10 (10 years ago)
Author:
whackl
Message:

added correct file for recurrence (#468)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs

    r1256 r1258  
    366366    private void dvOnline_OnSelectionChanged(object sender, EventArgs e) {
    367367      if (dvOnline.Selection == SelectionType.DateRange) {
    368         cmbFrom.Text = dvOnline.SelectionStart.ToShortDateString();
    369         cmbTo.Text = dvOnline.SelectionEnd.Date.ToShortDateString();
     368        dtpFrom.Text = dvOnline.SelectionStart.ToShortDateString();
     369        dtpTo.Text = dvOnline.SelectionEnd.Date.ToShortDateString();
    370370        txttimeFrom.Text = dvOnline.SelectionStart.ToShortTimeString();
    371371        txtTimeTo.Text = dvOnline.SelectionEnd.ToShortTimeString();
     
    385385      DateTime from, to;
    386386
    387       if (!string.IsNullOrEmpty(cmbFrom.Text) && !string.IsNullOrEmpty(cmbTo.Text)) {
     387      if (!string.IsNullOrEmpty(dtpFrom.Text) && !string.IsNullOrEmpty(dtpTo.Text)) {
    388388        if (chbade.Checked) {
    389389          //whole day appointment, only dates are visible
    390           if (DateTime.TryParse(cmbFrom.Text + " " + txttimeFrom.Text, out from) && DateTime.TryParse(cmbTo.Text + " " + txtTimeTo.Text, out to) && from < to)
     390          if (DateTime.TryParse(dtpFrom.Text + " " + txttimeFrom.Text, out from) && DateTime.TryParse(dtpTo.Text + " " + txtTimeTo.Text, out to) && from < to)
    391391            onlineTimes.Add(CreateAppointment(from, to.AddDays(1), true));
    392392          else
     
    394394        } else if (!string.IsNullOrEmpty(txttimeFrom.Text) && !string.IsNullOrEmpty(txtTimeTo.Text)) {
    395395          //Timeframe appointment
    396           if (DateTime.TryParse(cmbFrom.Text + " " + txttimeFrom.Text, out from) && DateTime.TryParse(cmbTo.Text + " " + txtTimeTo.Text, out to) && from < to) {
     396          if (DateTime.TryParse(dtpFrom.Text + " " + txttimeFrom.Text, out from) && DateTime.TryParse(dtpTo.Text + " " + txtTimeTo.Text, out to) && from < to) {
    397397            if (from.Date == to.Date)
    398398              onlineTimes.Add(CreateAppointment(from, to, false));
Note: See TracChangeset for help on using the changeset viewer.