Exemplo n.º 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);
        }
Exemplo n.º 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;
		}