Changeset 946


Ignore:
Timestamp:
5/1/2009 3:23:22 AM (6 years ago)
Author:
lowjoel
Message:

Changed the event handler delegate types such that all event handlers use the EventArgs?<> generic.

File:
1 edited

Legend:

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

    r925 r946  
    5555 
    5656            //Register our event handler to get live log messages 
    57             task.Log.Logged += new EventHandler<LogEventArgs>(task_Logged); 
     57            task.Log.Logged += task_Logged; 
    5858            this.log.EndUpdate(); 
    5959        } 
     
    6161        private void LogForm_FormClosed(object sender, FormClosedEventArgs e) 
    6262        { 
    63             task.Log.Logged -= new EventHandler<LogEventArgs>(task_Logged); 
     63            task.Log.Logged -= task_Logged; 
    6464        } 
    6565 
     
    7171                try 
    7272                { 
    73                     Invoke(new EventHandler<LogEventArgs>(task_Logged), new object[] { e }); 
     73                    Invoke(new EventHandler<LogEventArgs>(task_Logged), sender, e); 
    7474                } 
    7575                catch (ObjectDisposedException) 
Note: See TracChangeset for help on using the changeset viewer.