Example #1
0
        public WindowsPlatform(Form form)
            : base(new WindowsPreferences())
        {
            MainForm       = form;
            MainForm.Load += delegate {
                ApplicationLaunched.Raise(this);
            };
            Application.ApplicationExit += delegate {
                ApplicationWillQuit.Raise(this);
            };

            SystemEvents.PowerModeChanged += PowerModeChanged;
        }
Example #2
0
 void HandleNSApplicationSharedApplicationDidFinishLaunching(object sender, EventArgs e)
 {
     ApplicationLaunched.Raise(this);
 }