Example #1
0
        /// <inheritdoc/>
        public override void DoImportFiles(ImportFilesEventArgs args)
        {
            if (args == null)
            {
                return;
            }

            //! Assume this is the passive panel, so call the active
            AddObjects(A.InvokeCode("Get-FarItem -Selected"));             //????? crap. but...
        }
Example #2
0
 /// <include file='doc.xml' path='doc/ScriptFork/*'/>
 /// <param name="args">.</param>
 public sealed override void ImportFiles(ImportFilesEventArgs args)
 {
     if (AsImportFiles == null)
     {
         DoImportFiles(args);
     }
     else
     {
         A.InvokeScriptReturnAsIs(AsImportFiles, this, args);
     }
 }
        public override void ImportFiles(ImportFilesEventArgs args)
        {
            FarPodOperationService s = get(args);

            if (!Far.Net.Panel.RealNames)
            {
                args.Result = JobResult.Ignore;
                return;
            }

            OperationResult or = s.CopyOrMoveContentToSelf(args.Files, args.DirectoryName, args.Move);

            args.Result = processResult(or, args.Mode.HasFlag(ExplorerModes.Silent), args.FilesToStay);
        }
Example #4
0
        public override void UIImportFiles(ImportFilesEventArgs args)
        {
            if (!ensurePathExist())
            {
                return;
            }

            base.UIImportFiles(args);
        }
Example #5
0
 /// <summary>
 /// <see cref="Explorer.ImportFiles"/> worker.
 /// </summary>
 /// <param name="args">.</param>
 public virtual void DoImportFiles(ImportFilesEventArgs args)
 {
     base.ImportFiles(args);
 }
Example #6
0
 /// <include file='doc.xml' path='doc/ScriptFork/*'/>
 /// <param name="args">.</param>
 public override sealed void ImportFiles(ImportFilesEventArgs args)
 {
     if (AsImportFiles == null)
         DoImportFiles(args);
     else
         A.InvokeScriptReturnAsIs(AsImportFiles, this, args);
 }
Example #7
0
 /// <summary>
 /// <see cref="Explorer.ImportFiles"/> worker.
 /// </summary>
 /// <param name="args">.</param>
 public virtual void DoImportFiles(ImportFilesEventArgs args)
 {
     base.ImportFiles(args);
 }
Example #8
0
 /// <summary>
 /// Imports files from a native source.
 /// </summary>
 /// <param name="args">.</param>
 public virtual void ImportFiles(ImportFilesEventArgs args)
 {
     if (args != null) args.Result = JobResult.Ignore;
 }
Example #9
0
        /// <inheritdoc/>
        public override void DoImportFiles(ImportFilesEventArgs args)
        {
            if (args == null) return;

            //! Assume this is the passive panel, so call the active
            AddObjects(A.InvokeCode("Get-FarItem -Selected")); //????? crap. but...
        }
Example #10
0
        /// <summary>
        /// Calls <see cref="FarNet.Explorer.ImportFiles"/> and <see cref="OnThisFileChanged"/>.
        /// </summary>
        /// <param name="args">.</param>
        public virtual void UIImportFiles(ImportFilesEventArgs args)
        {
            if (args == null) return;

            Explorer.ImportFiles(args);

            if (args.Result != JobResult.Ignore)
                OnThisFileChanged(args);
        }