Exemple #1
0
        static CarbonEventHandlerStatus HandleQuit(IntPtr callRef, IntPtr eventRef, IntPtr user_data)
        {
            var args = new ApplicationQuitEventArgs();

            quit(null, args);
            return(args.UserCancelled? CarbonEventHandlerStatus.UserCancelled : args.HandledStatus);
        }
Exemple #2
0
		static CarbonEventHandlerStatus HandleQuit (IntPtr callRef, IntPtr eventRef, IntPtr user_data)
		{
			var args = new ApplicationQuitEventArgs ();
			quit (null, args);
			return args.UserCancelled? CarbonEventHandlerStatus.UserCancelled : args.HandledStatus;
		}