Ejemplo n.º 1
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;
     }
 }
Ejemplo n.º 2
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);
            }
        }