Inheritance: System.EventArgs
Ejemplo n.º 1
0
        public override NSApplicationTerminateReply ApplicationShouldTerminate(NSApplication sender)
        {
            var terminatingEvent = Terminating;

            if (terminatingEvent != null)
            {
                var args = new TerminationEventArgs();
                terminatingEvent(NSApplication.SharedApplication, args);
                return(args.Reply);
            }

            return(NSApplicationTerminateReply.Now);
        }
Ejemplo n.º 2
0
		public override NSApplicationTerminateReply ApplicationShouldTerminate (NSApplication sender)
		{
			var terminatingEvent = Terminating;
			if (terminatingEvent != null) {
				var args = new TerminationEventArgs ();
				terminatingEvent (NSApplication.SharedApplication, args);
				return args.Reply;
			}

			return NSApplicationTerminateReply.Now;
		}