Changeset 2485
- Timestamp:
- 3/13/2012 11:05:24 PM (15 months ago)
- Location:
- branches/eraser6/pluginsRewrite
- Files:
-
- 5 edited
-
Eraser.Manager/Task.cs (modified) (1 diff)
-
Eraser/LogForm.cs (modified) (1 diff)
-
Eraser/MainForm.cs (modified) (1 diff)
-
Eraser/ProgressForm.cs (modified) (1 diff)
-
Eraser/SchedulerPanel.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/pluginsRewrite/Eraser.Manager/Task.cs
r2484 r2485 126 126 /// The name of the task, used for display in UI elements. 127 127 /// </summary> 128 public string ToString()128 public override string ToString() 129 129 { 130 130 //Simple case, the task name was given by the user. -
branches/eraser6/pluginsRewrite/Eraser/LogForm.cs
r1886 r2485 43 43 44 44 //Update the title 45 Text = string.Format(CultureInfo.InvariantCulture, "{0} - {1}", Text, task .UIText);45 Text = string.Format(CultureInfo.InvariantCulture, "{0} - {1}", Text, task); 46 46 47 47 //Populate the list of sessions -
branches/eraser6/pluginsRewrite/Eraser/MainForm.cs
r2344 r2485 365 365 366 366 Task task = (Task)sender; 367 string iconText = S._("Eraser") + " - " + S._("Processing:") + ' ' + task. UIText;367 string iconText = S._("Eraser") + " - " + S._("Processing:") + ' ' + task.ToString(); 368 368 if (iconText.Length >= 64) 369 369 iconText = iconText.Remove(60) + "..."; -
branches/eraser6/pluginsRewrite/Eraser/ProgressForm.cs
r2445 r2485 49 49 50 50 //Register the event handlers 51 jobTitle.Text = task. UIText;51 jobTitle.Text = task.ToString(); 52 52 task.ProgressChanged += task_ProgressChanged; 53 53 task.TaskFinished += task_TaskFinished; -
branches/eraser6/pluginsRewrite/Eraser/SchedulerPanel.cs
r2452 r2485 65 65 { 66 66 //Add the item to the list view 67 ListViewItem item = scheduler.Items.Add(task. UIText);67 ListViewItem item = scheduler.Items.Add(task.ToString()); 68 68 item.SubItems.Add(string.Empty); 69 69 item.SubItems.Add(string.Empty); … … 92 92 93 93 //Set the task name 94 item.Text = task. UIText;94 item.Text = task.ToString(); 95 95 96 96 //Set the next run time of the task … … 144 144 { 145 145 parent.ShowNotificationBalloon(S._("New task added"), S._("{0} " + 146 "has just been added to the list of tasks.", e.Task. UIText),146 "has just been added to the list of tasks.", e.Task.ToString()), 147 147 ToolTipIcon.Info); 148 148 } … … 277 277 { 278 278 case LogLevel.Warning: 279 message = S._("The task {0} has completed with warnings.", task .UIText);279 message = S._("The task {0} has completed with warnings.", task); 280 280 icon = ToolTipIcon.Warning; 281 281 break; 282 282 case LogLevel.Error: 283 message = S._("The task {0} has completed with errors.", task .UIText);283 message = S._("The task {0} has completed with errors.", task); 284 284 icon = ToolTipIcon.Error; 285 285 break; 286 286 case LogLevel.Fatal: 287 message = S._("The task {0} did not complete.", task .UIText);287 message = S._("The task {0} did not complete.", task); 288 288 icon = ToolTipIcon.Error; 289 289 break; 290 290 default: 291 message = S._("The task {0} has completed.", task .UIText);291 message = S._("The task {0} has completed.", task); 292 292 icon = ToolTipIcon.Info; 293 293 break;
Note: See TracChangeset
for help on using the changeset viewer.
