Beispiel #1
0
        public static bool OnOpenDirectory(IDirectoryViewModel e)
        {
            var args = new OpenDirectoryArgs(e);

            if (e.Path != "" && !Directory.Exists(e.Path))
            {
                OnNoExistDirectory(e);
                throw new DirectoryDoesExistException();
            }
            OpenDirectory?.Invoke(null, args);
            return(args.Cancel);
        }
 public static bool OnOpenDirectory(IDirectoryViewModel e)
 {
     var args = new OpenDirectoryArgs(e);
     if (e.Path != "" && !Directory.Exists(e.Path))
     {
         OnNoExistDirectory(e);
         throw new DirectoryDoesExistException();
     }
     OpenDirectory?.Invoke(null, args);
     return args.Cancel;
 }