/// <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... }
/// <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); }
public override void UIImportFiles(ImportFilesEventArgs args) { if (!ensurePathExist()) { return; } base.UIImportFiles(args); }
/// <summary> /// <see cref="Explorer.ImportFiles"/> worker. /// </summary> /// <param name="args">.</param> public virtual void DoImportFiles(ImportFilesEventArgs args) { base.ImportFiles(args); }
/// <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); }
/// <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; }
/// <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... }
/// <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); }