Esempio n. 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;
        }
Esempio n. 2
0
 void HandleNSApplicationSharedApplicationWillTerminate(object sender, EventArgs e)
 {
     ApplicationWillQuit.Raise(this);
 }