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