Example #1
0
 private void AutoOpen()
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new MethodInvoker(delegate {
             AutoOpen();
         }));
         return;
     }
     if (autoLoad && autoOpenPath.Length > 0 && File.Exists(autoOpenPath))
     {
         string path = autoOpenPath;
         if (Path.GetExtension(path) == ".pck")
         {
             unppack_path = path;
         }
         if (unppack_path.Length <= 1)
         {
             JMessageBox.Show(this, "Please select .pck!");
         }
         else
         {
             if (openedPckFies != null)
             {
                 openedPckFies.Dispose();
             }
             openedPckFies = new PackHelper(unppack_path, true)
             {
                 ReadTableIsDone = initialRead
             };
             openedPckFies.progress_bar += progress_bar;
             this.fiullFilePath          = unppack_path;
         }
     }
 }