Example #1
0
 static CarbonEventHandlerStatus HandleOpenUrls(IntPtr callRef, IntPtr eventRef, IntPtr user_data)
 {
     try {
         var urls = Carbon.GetUrlListFromEventRef(eventRef);
         var args = new ApplicationUrlEventArgs(urls);
         openUrls(null, args);
         return(args.HandledStatus);
     } catch (Exception ex) {
         System.Console.WriteLine(ex);
         return(CarbonEventHandlerStatus.NotHandled);
     }
 }
		static CarbonEventHandlerStatus HandleOpenUrls (IntPtr callRef, IntPtr eventRef, IntPtr user_data)
		{
			try {
				var urls = Carbon.GetUrlListFromEventRef (eventRef);
				var args = new ApplicationUrlEventArgs (urls);
				openUrls (null, args);
				return args.HandledStatus;
			} catch (Exception ex) {
				System.Console.WriteLine (ex);
				return CarbonEventHandlerStatus.NotHandled;
			}
		}