private void button2_Click(object sender, EventArgs e)
 {
     using (GarminCommunicatorForm dlg = new GarminCommunicatorForm())
     {
         if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             try
             {
                 using (System.IO.TemporaryFile tmp = new System.IO.TemporaryFile(true))
                 {
                     System.IO.File.WriteAllText(tmp.Path, dlg.FileContents);
                     processGeocacheVisitsFile(System.IO.File.ReadAllLines((tmp.Path)));
                 }
             }
             catch
             {
             }
         }
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     using (GarminCommunicatorForm dlg = new GarminCommunicatorForm())
     {
         if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             try
             {
                 using (System.IO.TemporaryFile tmp = new System.IO.TemporaryFile(true))
                 {
                     System.IO.File.WriteAllText(tmp.Path, dlg.FileContents);
                     processGeocacheVisitsFile(System.IO.File.ReadAllLines((tmp.Path)));
                 }
             }
             catch
             {
             }
         }
     }
 }