Changeset 2756


Ignore:
Timestamp:
07/02/12 05:06:15 (2 years ago)
Author:
lowjoel
Message:

Callbacks for the Executor need to be public so that the Remote executor will work.

Location:
branches/eraser6/EraserService/Eraser
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/EraserService/Eraser/LogForm.cs

    r2606 r2756  
    6363            if (Task.Log.Count > 0) 
    6464                Task.Log.Last().Chain(this); 
    65             Task.TaskStarted += task_TaskStarted; 
     65            Task.TaskStarted += OnTaskStarted; 
    6666        } 
    6767 
    6868        private void LogForm_FormClosed(object sender, FormClosedEventArgs e) 
    6969        { 
    70             Task.TaskStarted -= task_TaskStarted; 
     70            Task.TaskStarted -= OnTaskStarted; 
    7171            if (Task.Log.Count > 0) 
    7272                Task.Log.Last().Unchain(this); 
     
    7878        } 
    7979 
    80         private void task_TaskStarted(object sender, EventArgs e) 
     80        public void OnTaskStarted(object sender, EventArgs e) 
    8181        { 
    8282            if (IsDisposed || !IsHandleCreated) 
     
    8484            if (InvokeRequired) 
    8585            { 
    86                 Invoke((EventHandler<EventArgs>)task_TaskStarted, sender, e); 
     86                Invoke((EventHandler<EventArgs>)OnTaskStarted, sender, e); 
    8787                return; 
    8888            } 
  • branches/eraser6/EraserService/Eraser/MainForm.cs

    r2737 r2756  
    155155        } 
    156156 
    157         private void Notifier_Registered(object sender, EventArgs e) 
     157        public void Notifier_Registered(object sender, EventArgs e) 
    158158        { 
    159159            ((INotifier)sender).Sink = this; 
     
    447447 
    448448        #region Task processing code (for notification area animation) 
    449         void OnTaskAdded(object sender, TaskEventArgs e) 
     449        public void OnTaskAdded(object sender, TaskEventArgs e) 
    450450        { 
    451451            e.Task.TaskStarted += OnTaskProcessing; 
     
    453453        } 
    454454 
    455         void OnTaskDeleted(object sender, TaskEventArgs e) 
     455        public void OnTaskDeleted(object sender, TaskEventArgs e) 
    456456        { 
    457457            e.Task.TaskStarted -= OnTaskProcessing; 
     
    459459        } 
    460460 
    461         void OnTaskProcessing(object sender, EventArgs e) 
     461        public void OnTaskProcessing(object sender, EventArgs e) 
    462462        { 
    463463            if (InvokeRequired) 
     
    477477        } 
    478478 
    479         void OnTaskProcessed(object sender, EventArgs e) 
     479        public void OnTaskProcessed(object sender, EventArgs e) 
    480480        { 
    481481            if (InvokeRequired) 
  • branches/eraser6/EraserService/Eraser/ProgressForm.cs

    r2516 r2756  
    5050            //Register the event handlers 
    5151            jobTitle.Text = task.ToString(); 
    52             task.TaskFinished += task_TaskFinished; 
     52            task.TaskFinished += OnTaskFinished; 
    5353 
    5454            //Set the current progress 
     
    5858        private void ProgressForm_FormClosed(object sender, FormClosedEventArgs e) 
    5959        { 
    60             task.TaskFinished -= task_TaskFinished; 
     60            task.TaskFinished -= OnTaskFinished; 
    6161        } 
    6262 
     
    6666        } 
    6767 
    68         private void task_TaskFinished(object sender, EventArgs e) 
     68        public void OnTaskFinished(object sender, EventArgs e) 
    6969        { 
    7070            if (IsDisposed || !IsHandleCreated) 
     
    7272            if (InvokeRequired) 
    7373            { 
    74                 Invoke((EventHandler)task_TaskFinished, sender, e); 
     74                Invoke((EventHandler)OnTaskFinished, sender, e); 
    7575                return; 
    7676            } 
  • branches/eraser6/EraserService/Eraser/SchedulerPanel.cs

    r2608 r2756  
    130130        /// Handles the Task Added event. 
    131131        /// </summary> 
    132         private void TaskAdded(object sender, TaskEventArgs e) 
     132        public void TaskAdded(object sender, TaskEventArgs e) 
    133133        { 
    134134            if (InvokeRequired) 
     
    172172        /// Handles the task deleted event. 
    173173        /// </summary> 
    174         private void TaskDeleted(object sender, TaskEventArgs e) 
     174        public void TaskDeleted(object sender, TaskEventArgs e) 
    175175        { 
    176176            if (InvokeRequired) 
     
    194194        /// </summary> 
    195195        /// <param name="e">The task event object.</param> 
    196         void TaskStarted(object sender, EventArgs e) 
     196        public void TaskStarted(object sender, EventArgs e) 
    197197        { 
    198198            if (InvokeRequired) 
     
    247247        /// Handles the task completion event. 
    248248        /// </summary> 
    249         void TaskFinished(object sender, EventArgs e) 
     249        public void TaskFinished(object sender, EventArgs e) 
    250250        { 
    251251            if (InvokeRequired) 
  • branches/eraser6/EraserService/Eraser/SettingsPanel.cs

    r2609 r2756  
    5858        } 
    5959 
    60         private void OnNewPluginLoaded(object sender, PluginLoadedEventArgs e) 
     60        public void OnNewPluginLoaded(object sender, PluginLoadedEventArgs e) 
    6161        { 
    6262            ListViewItem item = new ListViewItem(); 
     
    8989        } 
    9090 
    91         private void OnMethodRegistered(object sender, EventArgs e) 
     91        public void OnMethodRegistered(object sender, EventArgs e) 
    9292        { 
    9393            IErasureMethod method = (IErasureMethod)sender; 
     
    9797        } 
    9898 
    99         private void OnMethodUnregistered(object sender, EventArgs e) 
     99        public void OnMethodUnregistered(object sender, EventArgs e) 
    100100        { 
    101101            IErasureMethod method = (IErasureMethod)sender; 
Note: See TracChangeset for help on using the changeset viewer.