Changeset 1258 for trunk/sources
- Timestamp:
- 03/05/09 16:38:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs
r1256 r1258 366 366 private void dvOnline_OnSelectionChanged(object sender, EventArgs e) { 367 367 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(); 370 370 txttimeFrom.Text = dvOnline.SelectionStart.ToShortTimeString(); 371 371 txtTimeTo.Text = dvOnline.SelectionEnd.ToShortTimeString(); … … 385 385 DateTime from, to; 386 386 387 if (!string.IsNullOrEmpty( cmbFrom.Text) && !string.IsNullOrEmpty(cmbTo.Text)) {387 if (!string.IsNullOrEmpty(dtpFrom.Text) && !string.IsNullOrEmpty(dtpTo.Text)) { 388 388 if (chbade.Checked) { 389 389 //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) 391 391 onlineTimes.Add(CreateAppointment(from, to.AddDays(1), true)); 392 392 else … … 394 394 } else if (!string.IsNullOrEmpty(txttimeFrom.Text) && !string.IsNullOrEmpty(txtTimeTo.Text)) { 395 395 //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) { 397 397 if (from.Date == to.Date) 398 398 onlineTimes.Add(CreateAppointment(from, to, false));
Note: See TracChangeset
for help on using the changeset viewer.