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

« back to all changes in this revision

Viewing changes to external/monomac/samples/Preferences/Preferences/AppDelegate.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:
 
1
using MonoMac.Foundation;
 
2
using MonoMac.AppKit;
 
3
 
 
4
namespace Preferences
 
5
{
 
6
        public partial class AppDelegate : NSApplicationDelegate
 
7
        {
 
8
                MainWindowController mainWindowController;
 
9
                PreferencesWindowController preferencesWindowController;
 
10
 
 
11
                public override void FinishedLaunching (NSObject notification)
 
12
                {
 
13
                        mainWindowController = new MainWindowController ();
 
14
                        mainWindowController.Window.MakeKeyAndOrderFront (this);
 
15
                }
 
16
 
 
17
                // Action method binded in MainMenu.xib to "Preferences..." menu item.
 
18
                partial void ShowPreferencesWindow (NSObject sender)
 
19
                {
 
20
                        if (preferencesWindowController == null)
 
21
                                preferencesWindowController = new PreferencesWindowController ();
 
22
                        preferencesWindowController.ShowWindow (this);
 
23
                }
 
24
        }
 
25
}
 
26