Пример #1
0
 public override void setDefaultHandlerForScheme(ch.cyberduck.core.local.Application a, Scheme scheme)
 {
     if (Scheme.ftp.@equals(scheme))
     {
         this.RegisterFtpProtocol();
     }
     if (Scheme.sftp.@equals(scheme))
     {
         this.RegisterSftpProtocol();
     }
 }
Пример #2
0
 public override void setDefaultHandlerForScheme(ch.cyberduck.core.local.Application a, string scheme)
 {
     if (Scheme.ftp.name().Equals(scheme))
     {
         this.RegisterFtpProtocol();
     }
     else if (Scheme.sftp.name().Equals(scheme))
     {
         this.RegisterSftpProtocol();
     }
     else
     {
         CreateCustomUrlHandler(Registry.CurrentUser, scheme, "custom handler", Application.ExecutablePath,
                                Application.ExecutablePath + ",0");
     }
 }
 public override void setDefaultHandler(ch.cyberduck.core.local.Application a, List schemes)
 {
     for (int i = 0; i < schemes.size(); i++)
     {
         string scheme = (string)schemes.get(i);
         if (Scheme.ftp.name().Equals(scheme))
         {
             this.RegisterFtpProtocol();
         }
         else if (Scheme.sftp.name().Equals(scheme))
         {
             this.RegisterSftpProtocol();
         }
         else
         {
             CreateCustomUrlHandler(Registry.CurrentUser, scheme, "custom handler", Application.ExecutablePath,
                                    Application.ExecutablePath + ",0");
         }
     }
 }