~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/src/AppKit/ActionDispatcher.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                [Preserve, Export (skey)]
45
45
                public void OnActivated (NSObject sender)
46
46
                {
47
 
                        if (Activated != null)
48
 
                                Activated (sender, EventArgs.Empty);
 
47
                        EventHandler handler = Activated;
 
48
                        if (handler != null)
 
49
                                handler (sender, EventArgs.Empty);
49
50
                }
50
51
 
51
52
                [Preserve, Export (dkey)]
52
53
                public void OnActivated2 (NSObject sender)
53
54
                {
54
 
                        if (DoubleActivated != null)
55
 
                                DoubleActivated (sender, EventArgs.Empty);
 
55
                        EventHandler handler = DoubleActivated;
 
56
                        if (handler != null)
 
57
                                handler (sender, EventArgs.Empty);
56
58
                }
57
59
                
58
60
                public ActionDispatcher (EventHandler handler)