Esempio n. 1
0
 static CarbonEventHandlerStatus HandleOpenDocuments(IntPtr callRef, IntPtr eventRef, IntPtr user_data)
 {
     try {
         var docs = Carbon.GetFileListFromEventRef(eventRef);
         var args = new ApplicationDocumentEventArgs(docs);
         openDocuments(null, args);
         return(args.HandledStatus);
     } catch (Exception ex) {
         System.Console.WriteLine(ex);
         return(CarbonEventHandlerStatus.NotHandled);
     }
 }
		static CarbonEventHandlerStatus HandleOpenDocuments (IntPtr callRef, IntPtr eventRef, IntPtr user_data)
		{
			try {
				var docs = Carbon.GetFileListFromEventRef (eventRef);
				var args = new ApplicationDocumentEventArgs (docs);
				openDocuments (null, args);
				return args.HandledStatus;
			} catch (Exception ex) {
				System.Console.WriteLine (ex);
				return CarbonEventHandlerStatus.NotHandled;
			}
		}