Exemple #1
0
        internal static void PrintFolder(string folder)
        {
            if (!Directory.Exists(folder))
            {
                return;
            }

            List <string> files = FileFunctions.GetAvaliableFilesByDirectory(folder, Configs.RecSearch);

            foreach (string file in files)
            {
                file.Print();
            }
        }
Exemple #2
0
 private void panel1_DragDrop(object sender, DragEventArgs e)
 {
     if (e.Effect == DragDropEffects.Copy && e.Data.GetDataPresent(DataFormats.FileDrop))
     {
         string some_obj = ((string[])e.Data.GetData(DataFormats.FileDrop))[0];
         if (Directory.Exists(some_obj))
         {
             FileFunctions.PrintFolder(some_obj);
         }
         else if (File.Exists(some_obj))
         {
             some_obj.Print();
         }
     }
 }