Esempio n. 1
0
        void MessageReceivedWrapper(object sender, MessageReceivedArgs e)
        {
            var eh = received_handler;

            if (eh == null)
            {
                return;
            }
            foreach (MessageReceivedHandler d in eh.GetInvocationList())
            {
                if (e.RetVal != null && (Response)e.RetVal != Response.Passthrough)
                {
                    break;
                }
                d(sender, e);
            }
        }
Esempio n. 2
0
 void HandleMessageReceived(object sender, MessageReceivedArgs e)
 {
     switch ((Command)e.Command) {
     case Command.Import:
         HandleImport (e.MessageData.Text);
         e.RetVal = Response.Ok;
         break;
     case Command.Organize:
         HandleOrganize ();
         e.RetVal = Response.Ok;
         break;
     case Command.Shutdown:
         HandleShutdown ();
         e.RetVal = Response.Ok;
         break;
     case Command.Slideshow:
         HandleSlideshow (e.MessageData.Text);
         e.RetVal = Response.Ok;
         break;
     case Command.View:
         HandleView (e.MessageData.Uris);
         e.RetVal = Response.Ok;
         break;
     case Command.Invalid:
     default:
         Log.Debug ("Wrong command received");
         break;
     }
 }
Esempio n. 3
0
		void MessageReceivedWrapper (object sender, MessageReceivedArgs e)
		{
			MessageReceivedHandler eh = received_handler;
			if (eh == null)
				return;
			foreach (MessageReceivedHandler d in eh.GetInvocationList ()) {
				if (e.RetVal != null && (Response)e.RetVal != Response.Passthrough)
					break;
				d (sender, e);
			}
		}