Ejemplo n.º 1
0
        public bool OnShellExecution(ref Win32Helper.SHELLEXECUTEINFO info)
        {
            bool canHandle = false;

            foreach (IAppHandler handler in appHandlerList)
            {
                if (handler.CanHandle(info))
                {
                    canHandle = true;
                    handler.Execute(ref info);
                }
            }

            return(canHandle);
        }
Ejemplo n.º 2
0
 public abstract bool Execute(ref Win32Helper.SHELLEXECUTEINFO info);
Ejemplo n.º 3
0
 public virtual bool CanHandle(Win32Helper.SHELLEXECUTEINFO info)
 {
     return(Uri.IsWellFormedUriString(info.lpFile, UriKind.RelativeOrAbsolute));
 }
Ejemplo n.º 4
0
 public bool Execute(ref Win32Helper.SHELLEXECUTEINFO info)
 {
     return(false);
 }
Ejemplo n.º 5
0
 public bool CanHandle(Win32Helper.SHELLEXECUTEINFO info)
 {
     return(false);
 }