Changeset 160


Ignore:
Timestamp:
3/9/2008 11:00:56 AM (6 years ago)
Author:
lowjoel
Message:

Display the Next Run time for recurring schedules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/SchedulerPanel.cs

    r147 r160  
    77using System.Windows.Forms; 
    88 
     9using System.Globalization; 
    910using Eraser.Manager; 
    1011 
     
    2526        { 
    2627            ListViewItem item = scheduler.Items.Add(GenerateTaskName(task)); 
    27             item.SubItems.Add(task.Schedule.UIText); 
     28            if (task.Schedule is RecurringSchedule) 
     29                item.SubItems.Add((task.Schedule as RecurringSchedule).NextRun. 
     30                    ToString(DateTimeFormatInfo.CurrentInfo.FullDateTimePattern)); 
     31            else 
     32                item.SubItems.Add(task.Schedule.UIText); 
    2833            item.SubItems.Add(string.Empty); 
    2934 
Note: See TracChangeset for help on using the changeset viewer.