Skip to content
Permalink
Browse files

Import ilSFV

  • Loading branch information...
judwhite committed Apr 17, 2011
0 parents commit c2ecf2839e86be6f2c620f428d56b3fc940bd996
Showing with 15,465 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +30 −0 ilSFV.sln
  3. +187 −0 ilSFV/ExceptionForm.Designer.cs
  4. +116 −0 ilSFV/ExceptionForm.cs
  5. +130 −0 ilSFV/ExceptionForm.resx
  6. +34 −0 ilSFV/FastListView.cs
  7. +111 −0 ilSFV/FileAssociation/AssociationManager.cs
  8. +545 −0 ilSFV/FileAssociation/FileAssociationInfo.cs
  9. +729 −0 ilSFV/FileAssociation/ProgramAssociationInfo.cs
  10. +200 −0 ilSFV/FileAssociation/ProgramIcon.cs
  11. +73 −0 ilSFV/FileAssociation/ProgramVerb.cs
  12. +69 −0 ilSFV/FileAssociation/RegistryException.cs
  13. +209 −0 ilSFV/FileAssociation/RegistryWrapper.cs
  14. +211 −0 ilSFV/FileAssociation/ShellNotification.cs
  15. +107 −0 ilSFV/GetInputForm.Designer.cs
  16. +39 −0 ilSFV/GetInputForm.cs
  17. +120 −0 ilSFV/GetInputForm.resx
  18. +140 −0 ilSFV/Hash/CRC32.cs
  19. +111 −0 ilSFV/Hash/MD5.cs
  20. +111 −0 ilSFV/Hash/SHA1.cs
  21. +828 −0 ilSFV/MainForm.Designer.cs
  22. +2,748 −0 ilSFV/MainForm.cs
  23. +612 −0 ilSFV/MainForm.resx
  24. BIN ilSFV/MiniDisc Check.ico
  25. +20 −0 ilSFV/Model/Settings/BaseSqlSettings.cs
  26. +87 −0 ilSFV/Model/Settings/CheckSettings.cs
  27. +44 −0 ilSFV/Model/Settings/CommentSettings.cs
  28. +56 −0 ilSFV/Model/Settings/CreateSettings.cs
  29. +113 −0 ilSFV/Model/Settings/GeneralSettings.cs
  30. +268 −0 ilSFV/Model/Settings/ProgramSettings.cs
  31. +64 −0 ilSFV/Model/Settings/Statistics.cs
  32. +40 −0 ilSFV/Model/Workset/ChecksumFile.cs
  33. +10 −0 ilSFV/Model/Workset/ChecksumFileState.cs
  34. +22 −0 ilSFV/Model/Workset/ChecksumSet.cs
  35. +9 −0 ilSFV/Model/Workset/ChecksumType.cs
  36. +782 −0 ilSFV/PreferencesForm.Designer.cs
  37. +293 −0 ilSFV/PreferencesForm.cs
  38. +2,432 −0 ilSFV/PreferencesForm.resx
  39. +526 −0 ilSFV/Program.cs
  40. +34 −0 ilSFV/Properties/AssemblyInfo.cs
  41. +111 −0 ilSFV/Properties/Resources.Designer.cs
  42. +185 −0 ilSFV/Properties/Resources.resx
  43. +26 −0 ilSFV/Properties/Settings.Designer.cs
  44. +7 −0 ilSFV/Properties/Settings.settings
  45. +88 −0 ilSFV/ReleaseNotesForm.Designer.cs
  46. +24 −0 ilSFV/ReleaseNotesForm.cs
  47. +227 −0 ilSFV/ReleaseNotesForm.resx
  48. +258 −0 ilSFV/RemoveDuplicatesForm.Designer.cs
  49. +365 −0 ilSFV/RemoveDuplicatesForm.cs
  50. +120 −0 ilSFV/RemoveDuplicatesForm.resx
  51. BIN ilSFV/Resources/Analyze.png
  52. BIN ilSFV/Resources/Bullet 1.png
  53. BIN ilSFV/Resources/Bullet 10.png
  54. BIN ilSFV/Resources/Bullet 2.png
  55. BIN ilSFV/Resources/Bullet 3.png
  56. BIN ilSFV/Resources/Bullet 5.png
  57. BIN ilSFV/Resources/Bullet 6.png
  58. BIN ilSFV/Resources/Bullet 8.png
  59. BIN ilSFV/Resources/Bullet 9.png
  60. BIN ilSFV/Resources/Shield_Blue.png
  61. BIN ilSFV/Resources/Shield_Green.png
  62. BIN ilSFV/Resources/Status Flag Black.png
  63. BIN ilSFV/Resources/Status Flag Blue.png
  64. BIN ilSFV/Resources/Status Flag Green.png
  65. BIN ilSFV/Resources/Status Flag Red.png
  66. BIN ilSFV/Resources/Status Flag Yellow.png
  67. +228 −0 ilSFV/Tools/Cache.cs
  68. +154 −0 ilSFV/Tools/FileDrop.cs
  69. +70 −0 ilSFV/Tools/Guard.cs
  70. +501 −0 ilSFV/Tools/Http.cs
  71. +207 −0 ilSFV/Tools/InteropSHFileOperation.cs
  72. +31 −0 ilSFV/Tools/PostData.cs
  73. +31 −0 ilSFV/Tools/Sound.cs
  74. +41 −0 ilSFV/Tools/User32.cs
  75. +3 −0 ilSFV/app.config
  76. +45 −0 ilSFV/cache-schema.sqlce
  77. BIN ilSFV/cache.sdf
  78. BIN ilSFV/complete_error.wav
  79. BIN ilSFV/complete_ok.wav
  80. +308 −0 ilSFV/ilSFV.csproj
  81. +117 −0 ilSFV/settings-schema.sqlce
  82. BIN ilSFV/settings.sdf
  83. +53 −0 ilsfv-setup.iss
@@ -0,0 +1,5 @@
*.suo
*.csproj.user
*.ReSharper.user
bin/
obj/
@@ -0,0 +1,30 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ilSFV", "ilSFV\ilSFV.csproj", "{2C378AEA-D3AF-4701-A307-CF78AF331D1A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|Win32 = Debug|Win32
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Debug|Win32.ActiveCfg = Debug|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Release|Any CPU.Build.0 = Release|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{2C378AEA-D3AF-4701-A307-CF78AF331D1A}.Release|Win32.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,116 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
using System.Net;
using System.Reflection;

namespace ilSFV
{
/// <summary>
/// Exception form.
/// </summary>
public partial class ExceptionForm : Form
{
/// <summary>
/// Exception form constructor.
/// </summary>
/// <param name="message">The error message.</param>
/// <param name="stackTrace">The stack trace.</param>
/// <param name="isTopMost">if <c>true</c>, set TopMost = true.</param>
/// <param name="occuredDuringStartup">set to <c>true</c> if the error occured during application startup.</param>
public ExceptionForm(string message, string stackTrace, bool isTopMost, bool occuredDuringStartup)
{
InitializeComponent();

if (isTopMost)
{
StartPosition = FormStartPosition.CenterScreen;
TopMost = true;
}

if (occuredDuringStartup)
{
txtErrorMessage.Text = "This error occurred during startup.\r\n\r\n" + message;
}
else
{
txtErrorMessage.Text = message;
}

txtStackTrace.Text = stackTrace;

Thread t = new Thread(SubmitErrorNoThrow);
t.Start();
}

private void SubmitErrorNoThrow()
{
try
{
SubmitError("AUTO");
}
catch
{
}
}

private void btnReportBug_Click(object sender, EventArgs e)
{
string email = null;
DialogResult res = MessageBox.Show("Would you like a response when the bug is fixed?", "Submit bug", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (res == DialogResult.Yes)
{
GetInputForm.ShowForm("Submit bug", "How can we contact you? (email, website, etc)", out email);
}

try
{
Cursor.Current = Cursors.WaitCursor;

SubmitError(email);

Cursor.Current = Cursors.Default;

MessageBox.Show("Thank you. This bug has been successfully submitted.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);

Close();
}
catch (Exception ex)
{
Cursor.Current = Cursors.Default;
MessageBox.Show(ex.Message, "Error submitting bug", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}

/// <summary>
/// Submits the error.
/// </summary>
private void SubmitError(string email)
{
List<PostData> postData = new List<PostData>();
postData.Add(new PostData("dummy", ""));
postData.Add(new PostData("msg", txtErrorMessage.Text));
postData.Add(new PostData("stacktrace", txtStackTrace.Text));
postData.Add(new PostData("os", Environment.OSVersion.ToString()));
postData.Add(new PostData("ver", Assembly.GetExecutingAssembly().FullName));
postData.Add(new PostData("email", email ?? string.Empty));
postData.Add(new PostData("comments", ""));

IWebProxy proxy = WebRequest.DefaultWebProxy;
proxy.Credentials = new NetworkCredential();

Http.PostAsync("http://www.cdtag.com/ilsfvbug.php", postData, proxy);
}

private void ExceptionForm_Activated(object sender, EventArgs e)
{
txtErrorMessage.Focus();
}

private void btnIgnore_Click(object sender, EventArgs e)
{
Close();
}
}
}
Oops, something went wrong.

0 comments on commit c2ecf28

Please sign in to comment.
You can’t perform that action at this time.