public override ExecuteResult ExecuteOpen(TotalCommanderWindow window, ref string remoteName)
 {
     var username = "******";
     remoteName = "\\Work";
     var r = Request.GetOther(ref username, "Hello, World!");
     return ExecuteResult.SymLink;
 }
Exemplo n.º 2
0
 public override ExecuteResult Properties(TotalCommanderWindow window, ref string link)
 {
     using (var form = new EntryForm(this))
     {
         form.ShowDialog();
     }
     return(ExecuteResult.OK);
 }
        public override ExecuteResult ExecuteOpen(TotalCommanderWindow window, ref string remoteName)
        {
            var username = "******";

            remoteName = "\\Work";
            var r = Request.GetOther(ref username, "Hello, World!");

            return(ExecuteResult.SymLink);
        }
Exemplo n.º 4
0
 public override ExecuteResult Properties(TotalCommanderWindow window, ref string link)
 {
     using (var form = new AccountForm(accountName, accountManager.GetAccountInfo(accountName)))
     {
         if (form.ShowDialog() == DialogResult.OK && accountManager.Exists(accountName))
         {
             accountManager.Save(accountName, form.AccountInfo);
         }
     }
     return(ExecuteResult.OK);
 }
Exemplo n.º 5
0
        public override ExecuteResult Open(TotalCommanderWindow window, ref string link)
        {
            if (window == null)
            {
                throw new ArgumentNullException("window");
            }

            var account = new Account(accountManager, string.Empty).Initialize(Context);

            if (account.CreateFolder())
            {
                window.Refresh();
            }
            return(ExecuteResult.OK);
        }
Exemplo n.º 6
0
        public override ExecuteResult Open(TotalCommanderWindow window, ref string link)
        {
            if (window == null)
            {
                throw new ArgumentNullException("window");
            }

            var bucket = new Bucket(string.Empty).Initialize(Context, S3Service);

            if (bucket.CreateFolder())
            {
                window.Refresh();
            }
            return(ExecuteResult.OK);
        }
        public override ExecuteResult ExecuteOpen(TotalCommanderWindow window, ref string remoteName)
        {
            //adding new storage account
            var addStorageDialog = new AddStorageDialog();

            if (addStorageDialog.ShowDialog() != DialogResult.OK)
            {
                return(ExecuteResult.OK);
            }

            var blobConfig = addStorageDialog.StorageConfigInfo;

            StorageAccountsConfig.AddConfig(blobConfig);

            //redirect to Root folder, so it reflects the newly added folder
            remoteName = @"\";
            return(ExecuteResult.SymLink);
        }
        ExecuteResult ITotalCommanderWfxPlugin.FileExecute(TotalCommanderWindow window, ref string remoteName, string verb)
        {
            if (string.IsNullOrEmpty(verb))
            {
                return(ExecuteResult.Error);
            }
            var command = 0 < verb.IndexOf(' ') ? verb.Substring(verb.IndexOf(' ')).Trim() : string.Empty;

            switch (verb.ToLower().Substring(0, 1))
            {
            case "o": return(ExecuteOpen(window, ref remoteName));

            case "p": return(ExecuteProperties(window, ref remoteName));

            case "c": return(ExecuteChMode(window, ref remoteName, command));

            case "q": return(ExecuteCommand(window, ref remoteName, command));
            }
            return(ExecuteResult.Default);
        }
 ExecuteResult ITotalCommanderWfxPlugin.FileExecute(TotalCommanderWindow window, ref string remoteName, string verb)
 {
     if (string.IsNullOrEmpty(verb)) return ExecuteResult.Error;
     var command = 0 < verb.IndexOf(' ') ? verb.Substring(verb.IndexOf(' ')).Trim() : string.Empty;
     switch (verb.ToLower().Substring(0, 1))
     {
         case "o": return ExecuteOpen(window, ref remoteName);
         case "p": return ExecuteProperties(window, ref remoteName);
         case "c": return ExecuteChMode(window, ref remoteName, command);
         case "q": return ExecuteCommand(window, ref remoteName, command);
     }
     return ExecuteResult.Default;
 }
 public virtual ExecuteResult ExecuteOpen(TotalCommanderWindow window, ref string remoteName)
 {
     return(ExecuteResult.Default);
 }
Exemplo n.º 11
0
 public override ExecuteResult ExecuteProperties(TotalCommanderWindow window, ref string remoteName)
 {
     Trace("ExecuteProperties(path = \"{0}\")", remoteName);
     return(ResolvePath(remoteName).Properties(window, ref remoteName));
 }
Exemplo n.º 12
0
 public override ExecuteResult Open(TotalCommanderWindow window, ref string link)
 {
     return(ExecuteResult.YourSelf);
 }
 public virtual object ConfigurePacker(TotalCommanderWindow window)
 {
     return(null);
 }
 public virtual ExecuteResult ExecuteProperties(TotalCommanderWindow window, ref string remoteName)
 {
     return ExecuteResult.Default;
 }
 public virtual ExecuteResult ExecuteCommand(TotalCommanderWindow window, ref string remoteName, string command)
 {
     return ExecuteResult.Default;
 }
Exemplo n.º 16
0
        public override ExecuteResult ExecuteOpen(TotalCommanderWindow window, ref string remoteName)
        {
            var item = Root.Instance.GetItemByPath(remoteName);

            return(item.ExecuteOpen(window, ref remoteName));
        }
Exemplo n.º 17
0
 public virtual ExecuteResult Properties(TotalCommanderWindow window, ref string link)
 {
     return(ExecuteResult.Default);
 }
 public virtual object ConfigurePacker(TotalCommanderWindow window)
 {
     return null;
 }