/// <summary>
 /// Writes out the query to file
 /// </summary>
 private void SaveQuery()
 {
     if (String.IsNullOrWhiteSpace(SearchDir))
     {
         using (FolderBrowserDialog diag = new FolderBrowserDialog())
         {
             diag.Description = "Choose a Destination";
             diag.RootFolder  = Environment.SpecialFolder.MyComputer;
             if (diag.ShowDialog() == DialogResult.OK)
             {
                 if (!Directory.Exists(diag.SelectedPath))
                 {
                     Directory.CreateDirectory(diag.SelectedPath);
                 }
                 SearchDir = diag.SelectedPath;
             }
         }
     }
     QuerySerilizer.SaveQuery(QueryObj);
 }