checksumtool-commits Mailing List for CheckSum Tool
Status: Alpha
Brought to you by:
kimmov
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(13) |
Nov
(22) |
Dec
(44) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(50) |
Feb
(45) |
Mar
(7) |
Apr
(38) |
May
(12) |
Jun
|
Jul
|
Aug
(8) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
(3) |
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
(14) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ki...@us...> - 2009-05-09 08:11:49
|
Revision: 274
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=274&view=rev
Author: kimmov
Date: 2009-05-09 08:11:37 +0000 (Sat, 09 May 2009)
Log Message:
-----------
Build: use Python 2.6.
Modified Paths:
--------------
trunk/Src/CheckSumTool.build
Modified: trunk/Src/CheckSumTool.build
===================================================================
--- trunk/Src/CheckSumTool.build 2009-05-08 08:23:41 UTC (rev 273)
+++ trunk/Src/CheckSumTool.build 2009-05-09 08:11:37 UTC (rev 274)
@@ -85,7 +85,7 @@
<property name="nsis.log" value="nsis.log" />
<!-- Additional tools for building manual -->
- <property name="python" value="c:/python25/python.exe" />
+ <property name="python" value="c:/python26/python.exe" />
<property name="asciidoc" value="c:/Tools/AsciiDoc/asciidoc.py" />
<!-- [2] LOCAL BUILD TARGETS -->
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-08 08:23:46
|
Revision: 273
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=273&view=rev
Author: kimmov
Date: 2009-05-08 08:23:41 +0000 (Fri, 08 May 2009)
Log Message:
-----------
Build: create dist folder inside current folder, not to hard-coded external folder.
Modified Paths:
--------------
trunk/Src/CheckSumTool.build
Modified: trunk/Src/CheckSumTool.build
===================================================================
--- trunk/Src/CheckSumTool.build 2009-05-07 21:29:25 UTC (rev 272)
+++ trunk/Src/CheckSumTool.build 2009-05-08 08:23:41 UTC (rev 273)
@@ -3,7 +3,8 @@
<!--
The MIT License
-Copyright (c) 2007-2008 Ixonos Plc, Kimmo Varis <kim...@ix...>
+Copyright (c) 2007-2008 Ixonos Plc
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -53,6 +54,7 @@
<!-- Various propertis defining folders and other settings. -->
<!-- Modify these (especially the paths!) to match your environment! -->
<property name="project.name" value="CheckSumTool" />
+ <property name="project.version" value="0.7" />
<property name="executable.name" value="${project.name}.exe" />
<property name="project.config" value="debug" overwrite="false" />
@@ -62,12 +64,13 @@
<property name="nunit.dir" value="C:/Program Files/NUnit 2.4.8/bin" />
<!-- SVN repository URL / path -->
+ <property name="svn.export.local" value="true"/>
<property name="svn.repository.uri"
value="https://checksumtool.svn.sourceforge.net/svnroot/checksumtool/trunk"/>
<!-- Folder for repository builds -->
- <property name="svn.checkout.dir" value="G:/${project.name}/export"/>
+ <property name="svn.checkout.dir" value="../dist/export"/>
<!-- Folder where distribution is created -->
- <property name="dist.dir" value="${svn.checkout.dir}/dist/${project.name}" />
+ <property name="dist.dir" value="../dist/${project.name}-${project.version}" />
<!-- Manual's folders -->
<property name="src.dir.manual" value="../Documents/Manual" />
@@ -129,7 +132,11 @@
<!-- Now we have exported sources, lets build them.. -->
<!-- No need to run clean target as this is clean checkout from SVN! -->
<nant buildfile="${svn.checkout.dir}/Src/CheckSumTool.build"
- inheritall="true" target="${project.config}"/>
+ inheritall="true" target="${project.config}">
+ <properties>
+ <property name="svn.checkout.dir" value="../" />
+ </properties>
+ </nant>
</target>
<!-- This targets exports and builds whole CheckSum Tool distribution from
@@ -138,7 +145,11 @@
<target name="distribution" description="Creates a distribution from SVN"
depends="svn_build">
<property name="build.file" value="${svn.checkout.dir}/Src/CheckSumTool.build" />
- <nant buildfile="${build.file}" inheritall="true" target="exported_distrib"/>
+ <nant buildfile="${build.file}" inheritall="true" target="exported_distrib">
+ <properties>
+ <property name="svn.checkout.dir" value="../" />
+ </properties>
+ </nant>
</target>
@@ -216,9 +227,14 @@
<loadtasks assembly="${path::combine(environment::get-variable('NANTCONTRIB_DIR'),
'bin/NAnt.Contrib.Tasks.dll')}" />
- <svn uri="${svn.repository.uri}" destination="${svn.checkout.dir}" verbose="true">
+ <svn uri="${svn.repository.uri}" destination="${svn.checkout.dir}"
+ verbose="true" if="${not svn.export.local}">
<arg line="export --force ${svn.repository.uri} ${svn.checkout.dir}"/>
</svn>
+
+ <svn uri="../" verbose="true" if="${svn.export.local}">
+ <arg line="export --force ${svn.repository.uri} ${svn.checkout.dir}"/>
+ </svn>
</target>
<!-- Calls other tasks for creating a distribution. This task is called from
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 21:29:31
|
Revision: 272
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=272&view=rev
Author: kimmov
Date: 2009-05-07 21:29:25 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Add SumLib and Utils lib to versions.ini.
Modified Paths:
--------------
trunk/versions.ini
Modified: trunk/versions.ini
===================================================================
--- trunk/versions.ini 2009-05-07 19:23:33 UTC (rev 271)
+++ trunk/versions.ini 2009-05-07 21:29:25 UTC (rev 272)
@@ -6,10 +6,22 @@
type = NSIS
description = ChecksumTool NSIS Installer
path = Installer/NSIS/CheckSumTool.nsi
-version = "0.6.0"
+version = "0.7.0"
[Executable]
type = CS-AssemblyInfo
description = ChecksumTool GUI executable
path = Src/AssemblyInfo.cs
version = "0.7.0.*"
+
+[SumLib]
+type = CS-AssemblyInfo
+description = ChecksumTool SumLib DLL
+path = Src/SumLib/AssemblyInfo.cs
+version = "0.7.0.*"
+
+[Utils]
+type = CS-AssemblyInfo
+description = ChecksumTool Utils DLL
+path = Src/Utils/AssemblyInfo.cs
+version = "0.7.0.*"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 19:23:42
|
Revision: 271
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=271&view=rev
Author: kimmov
Date: 2009-05-07 19:23:33 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Web: Fix forum link to point to new PHPBB forums.
Modified Paths:
--------------
trunk/Web/index.html
Modified: trunk/Web/index.html
===================================================================
--- trunk/Web/index.html 2009-05-07 19:21:43 UTC (rev 270)
+++ trunk/Web/index.html 2009-05-07 19:23:33 UTC (rev 271)
@@ -84,7 +84,7 @@
<ul>
<li><a href="http://sourceforge.net/tracker/?group_id=208291&atid=1005105">Bugs</a></li>
<li><a href="http://sourceforge.net/tracker/?group_id=208291&atid=1005108">Feature Requests</a></li>
- <li><a href="http://sourceforge.net/forum/?group_id=208291">Forums</a></li>
+ <li><a href="http://apps.sourceforge.net/phpbb/checksumtool/">Forums</a></li>
<li><a href="http://sourceforge.net/mail/?group_id=208291">Mailing Lists</a></li>
</ul>
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 19:21:54
|
Revision: 270
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=270&view=rev
Author: kimmov
Date: 2009-05-07 19:21:43 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Web: Add 0.6.0 alpha release.
Modified Paths:
--------------
trunk/Web/index.html
Modified: trunk/Web/index.html
===================================================================
--- trunk/Web/index.html 2009-05-07 17:46:08 UTC (rev 269)
+++ trunk/Web/index.html 2009-05-07 19:21:43 UTC (rev 270)
@@ -44,6 +44,7 @@
</ul>
<h3>Alpha releases:</h3>
<ul>
+ <li><a href="http://sourceforge.net/project/showfiles.php?group_id=208291&package_id=249603&release_id=681101">Alpha 0.6.0</a> - 2009-05-07</li>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=208291&package_id=249603&release_id=595252">Alpha 0.5.0</a> - 2008-04-29</li>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=208291&package_id=249603&release_id=574180">Alpha 0.4.0</a> - 2008-02-05</li>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=208291&package_id=249603&release_id=566710">Alpha 0.3.0</a> - 2008-01-07</li>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 17:46:17
|
Revision: 269
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=269&view=rev
Author: kimmov
Date: 2009-05-07 17:46:08 +0000 (Thu, 07 May 2009)
Log Message:
-----------
CheckSum Tool 0.6.0 - 2009-05-07 (r269)
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-05-07 17:42:49 UTC (rev 268)
+++ trunk/Documents/ChangeLog.txt 2009-05-07 17:46:08 UTC (rev 269)
@@ -3,7 +3,7 @@
Numbers in parentheses mean either SourceForge.net tracker item number (#xxxxxxx)
or Subversion repository revision (rxxx).
-CheckSum Tool 0.6.0 - 2009-05-07 (r266)
+CheckSum Tool 0.6.0 - 2009-05-07 (r269)
Split code to two additional libraries (SumLib and Utils).
Installer: install new library files (r267)
Allow drag&drop files from Windows Explorer
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 17:42:59
|
Revision: 268
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=268&view=rev
Author: kimmov
Date: 2009-05-07 17:42:49 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Update new forums URL to readme file.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Documents/Readme.txt
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-05-07 17:39:57 UTC (rev 267)
+++ trunk/Documents/ChangeLog.txt 2009-05-07 17:42:49 UTC (rev 268)
@@ -12,6 +12,7 @@
Enable Verify-feature only when there are checksums in the list (r261)
Enable Calculate-feature only when there are items in the list (r262)
Ask if user wants to save unsaved items before loading new list (r263)
+ Update new forums URL to readme file (r268)
Bugfix: Product name was wrong (without space) in About-dialog.
Bugfix: Adding large file (over 2 GB) caused a crash (r259)
Modified: trunk/Documents/Readme.txt
===================================================================
--- trunk/Documents/Readme.txt 2009-05-07 17:39:57 UTC (rev 267)
+++ trunk/Documents/Readme.txt 2009-05-07 17:42:49 UTC (rev 268)
@@ -19,8 +19,8 @@
Support
-------
-Discussion forums:
-http://sourceforge.net/forum/?group_id=208291
+Discussion forums (new PHPBB forums):
+http://apps.sourceforge.net/phpbb/checksumtool/
Mailing lists:
https://sourceforge.net/mail/?group_id=208291
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 17:40:11
|
Revision: 267
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=267&view=rev
Author: kimmov
Date: 2009-05-07 17:39:57 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Installer: install new library files.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Installer/NSIS/CheckSumTool.nsi
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-05-07 17:25:28 UTC (rev 266)
+++ trunk/Documents/ChangeLog.txt 2009-05-07 17:39:57 UTC (rev 267)
@@ -5,6 +5,7 @@
CheckSum Tool 0.6.0 - 2009-05-07 (r266)
Split code to two additional libraries (SumLib and Utils).
+ Installer: install new library files (r267)
Allow drag&drop files from Windows Explorer
Allow drag&drop folders from Windows Explorer
Installer: Prevent starting second instance
Modified: trunk/Installer/NSIS/CheckSumTool.nsi
===================================================================
--- trunk/Installer/NSIS/CheckSumTool.nsi 2009-05-07 17:25:28 UTC (rev 266)
+++ trunk/Installer/NSIS/CheckSumTool.nsi 2009-05-07 17:39:57 UTC (rev 267)
@@ -86,6 +86,8 @@
CreateDirectory "$SMPROGRAMS\CheckSum Tool"
CreateShortCut "$SMPROGRAMS\CheckSum Tool\CheckSum Tool.lnk" "$INSTDIR\CheckSumTool.exe"
CreateShortCut "$DESKTOP\CheckSum Tool.lnk" "$INSTDIR\CheckSumTool.exe"
+ File "..\..\Build\Release\SumLib.dll"
+ File "..\..\Build\Release\Utils.dll"
File "..\..\Documents\COPYING"
File "..\..\Documents\Readme.txt"
File "..\..\Src\config.xml"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 17:25:37
|
Revision: 266
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=266&view=rev
Author: kimmov
Date: 2009-05-07 17:25:28 +0000 (Thu, 07 May 2009)
Log Message:
-----------
CheckSum Tool 0.6.0 - 2009-05-07 (r266)
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-05-07 17:20:26 UTC (rev 265)
+++ trunk/Documents/ChangeLog.txt 2009-05-07 17:25:28 UTC (rev 266)
@@ -3,7 +3,7 @@
Numbers in parentheses mean either SourceForge.net tracker item number (#xxxxxxx)
or Subversion repository revision (rxxx).
-CheckSum Tool 0.6.0
+CheckSum Tool 0.6.0 - 2009-05-07 (r266)
Split code to two additional libraries (SumLib and Utils).
Allow drag&drop files from Windows Explorer
Allow drag&drop folders from Windows Explorer
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 17:20:38
|
Revision: 265
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=265&view=rev
Author: kimmov
Date: 2009-05-07 17:20:26 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Docs: add more info about building with NAnt.
Modified Paths:
--------------
trunk/Documents/Compiling.txt
Modified: trunk/Documents/Compiling.txt
===================================================================
--- trunk/Documents/Compiling.txt 2009-05-07 17:07:00 UTC (rev 264)
+++ trunk/Documents/Compiling.txt 2009-05-07 17:20:26 UTC (rev 265)
@@ -42,10 +42,22 @@
NAnt:
- NAnt can be used to build the tool
-- NAntContrib is also required
+- NAntContrib is also required (for supporting additional tasks used)
- Build file is Src/CheckSumTool.build
+To use NAnt efficiently, add NAnt (or batch file calling it) onto your PATH-
+environment variable. Run NAnt from Src-folder:
+ nant /f:CheckSumTool.build <target>
+Most important targets are:
+ - clean : cleans the workspace from binary/temp files
+ - debug : build debug target in workspace
+ - release : build release target in workspace
+ - svn_build : export sources from SVN and do a release build
+ - distribution : build for distribution, export from SVN, build release-
+ target, create source- and binary-zips and create installer
+
+
The User Manual
---------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-07 17:07:10
|
Revision: 264
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=264&view=rev
Author: kimmov
Date: 2009-05-07 17:07:00 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Buildfile: make build target dependent on libraries target. This ensures libraries are built.
Modified Paths:
--------------
trunk/Src/CheckSumTool.build
Modified: trunk/Src/CheckSumTool.build
===================================================================
--- trunk/Src/CheckSumTool.build 2009-05-05 19:23:19 UTC (rev 263)
+++ trunk/Src/CheckSumTool.build 2009-05-07 17:07:00 UTC (rev 264)
@@ -190,7 +190,7 @@
inheritall="true" target="${project.config}"/>
</target>
- <target name="build" description="Default build target" depends="init">
+ <target name="build" description="Default build target" depends="init,libraries">
<echo message="Running default build target." />
<csc target="winexe" output="${build.dir}${executable.name}"
debug="${build.debug}" optimize="${build.optimize}"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-05 19:23:58
|
Revision: 263
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=263&view=rev
Author: kimmov
Date: 2009-05-05 19:23:19 +0000 (Tue, 05 May 2009)
Log Message:
-----------
Ask if user wants to save unsaved items before loading new list.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Src/MainForm.cs
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-05-05 18:56:45 UTC (rev 262)
+++ trunk/Documents/ChangeLog.txt 2009-05-05 19:23:19 UTC (rev 263)
@@ -10,6 +10,7 @@
Installer: Prevent starting second instance
Enable Verify-feature only when there are checksums in the list (r261)
Enable Calculate-feature only when there are items in the list (r262)
+ Ask if user wants to save unsaved items before loading new list (r263)
Bugfix: Product name was wrong (without space) in About-dialog.
Bugfix: Adding large file (over 2 GB) caused a crash (r259)
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-05-05 18:56:45 UTC (rev 262)
+++ trunk/Src/MainForm.cs 2009-05-05 19:23:19 UTC (rev 263)
@@ -627,10 +627,34 @@
/// <summary>
/// Shows Open-dialog for user to select the file to load. And opens
- /// the file user selected.
+ /// the file user selected. If there are unsaved changes, we ask
+ /// from user if one wants to save changes first.
/// </summary>
private void LoadFile()
{
+ if (_document.Items.HasChanged)
+ {
+ string message = "The list contains unsaved data.\n\n";
+ message += "Do you want to save current list first?";
+ DialogResult result = MessageBox.Show(this, message, "CheckSum Tool",
+ MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation);
+ switch (result)
+ {
+ // User wants to cancel so exit from saving
+ case DialogResult.Cancel:
+ return;
+
+ // User does not want to change so just continue to opening
+ case DialogResult.No:
+ break;
+
+ // User wants to save
+ case DialogResult.Yes:
+ SaveFile();
+ break;
+ }
+ }
+
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "MD5 Files (*.MD5)|*.MD5";
dlg.Filter += "|Simple File Verification Files (*.SFV)|*.SFV";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-05 18:56:56
|
Revision: 262
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=262&view=rev
Author: kimmov
Date: 2009-05-05 18:56:45 +0000 (Tue, 05 May 2009)
Log Message:
-----------
Enable Calculate-feature only when there are items in the list.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Src/MainForm.cs
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-05-05 18:48:46 UTC (rev 261)
+++ trunk/Documents/ChangeLog.txt 2009-05-05 18:56:45 UTC (rev 262)
@@ -9,6 +9,7 @@
Allow drag&drop folders from Windows Explorer
Installer: Prevent starting second instance
Enable Verify-feature only when there are checksums in the list (r261)
+ Enable Calculate-feature only when there are items in the list (r262)
Bugfix: Product name was wrong (without space) in About-dialog.
Bugfix: Adding large file (over 2 GB) caused a crash (r259)
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-05-05 18:48:46 UTC (rev 261)
+++ trunk/Src/MainForm.cs 2009-05-05 18:56:45 UTC (rev 262)
@@ -190,19 +190,30 @@
/// </remarks>
private void Application_Idle(Object sender, EventArgs e)
{
- // Verify-items are active only when there are checksums in the list
- if (_document.Items.HasCheckSums == false)
- {
- toolStripBtnVerify.Enabled = false;
+ if (_document.Items.Count == 0)
+ {
+ toolStripBtnCalculate.Enabled = false;
+ mainMenuChecksumsCalculateAll.Enabled = false;
+ }
+ else
+ {
+ toolStripBtnCalculate.Enabled = true;
+ mainMenuChecksumsCalculateAll.Enabled = true;
+ }
+
+ // Verify-items are active only when there are checksums in the list
+ if (_document.Items.HasCheckSums == false)
+ {
+ toolStripBtnVerify.Enabled = false;
mainMenuChecksumsVerifyAll.Enabled = false;
- }
- else
- {
- toolStripBtnVerify.Enabled = true;
+ }
+ else
+ {
+ toolStripBtnVerify.Enabled = true;
mainMenuChecksumsVerifyAll.Enabled = true;
- }
-
- if (_document.Items.HasChanged)
+ }
+
+ if (_document.Items.HasChanged)
{
toolStripBtnSave.Enabled = true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-05-05 18:48:53
|
Revision: 261
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=261&view=rev
Author: kimmov
Date: 2009-05-05 18:48:46 +0000 (Tue, 05 May 2009)
Log Message:
-----------
Enable Verify-feature only when there are checksums in the list.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Src/MainForm.cs
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-04-27 05:48:55 UTC (rev 260)
+++ trunk/Documents/ChangeLog.txt 2009-05-05 18:48:46 UTC (rev 261)
@@ -8,6 +8,7 @@
Allow drag&drop files from Windows Explorer
Allow drag&drop folders from Windows Explorer
Installer: Prevent starting second instance
+ Enable Verify-feature only when there are checksums in the list (r261)
Bugfix: Product name was wrong (without space) in About-dialog.
Bugfix: Adding large file (over 2 GB) caused a crash (r259)
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-04-27 05:48:55 UTC (rev 260)
+++ trunk/Src/MainForm.cs 2009-05-05 18:48:46 UTC (rev 261)
@@ -190,7 +190,19 @@
/// </remarks>
private void Application_Idle(Object sender, EventArgs e)
{
- if (_document.Items.HasChanged)
+ // Verify-items are active only when there are checksums in the list
+ if (_document.Items.HasCheckSums == false)
+ {
+ toolStripBtnVerify.Enabled = false;
+ mainMenuChecksumsVerifyAll.Enabled = false;
+ }
+ else
+ {
+ toolStripBtnVerify.Enabled = true;
+ mainMenuChecksumsVerifyAll.Enabled = true;
+ }
+
+ if (_document.Items.HasChanged)
{
toolStripBtnSave.Enabled = true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-27 05:49:00
|
Revision: 260
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=260&view=rev
Author: kimmov
Date: 2009-04-27 05:48:55 +0000 (Mon, 27 Apr 2009)
Log Message:
-----------
Docs: Update build tools and versions.
Modified Paths:
--------------
trunk/Documents/Compiling.txt
Modified: trunk/Documents/Compiling.txt
===================================================================
--- trunk/Documents/Compiling.txt 2009-04-26 11:35:51 UTC (rev 259)
+++ trunk/Documents/Compiling.txt 2009-04-27 05:48:55 UTC (rev 260)
@@ -13,11 +13,12 @@
Tools needed:
- Microsoft .Net 2.0 SDK:
http://www.microsoft.com/downloads/details.aspx?familyid=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en
-- The project was created using SharpDevelop 2.2 (free .Net IDE):
+- The project was created using SharpDevelop 2.2 (free .Net IDE),
+ and currently SharpDevelop 3.0 is used:
http://www.icsharpcode.net/OpenSource/SD/
- Project/solution files are compatible with Visual Studio 2005, so you can use
- either commercial version of Visual Studio 2005 or free Express edition:
- http://msdn2.microsoft.com/en-us/express/default.aspx
+ Project/solution files are compatible with Visual Studio 2005 or later, so you can use
+ either commercial version of Visual Studio or free Express edition:
+ http://www.microsoft.com/Express/
- NSIS for compiling installer
http://nsis.sourceforge.net/
- NAnt for automatic building
@@ -27,6 +28,12 @@
- NUnit for unit testing
http://www.nunit.org/
+Additional (and useful tools):
+- FxCop for checking coding errors:
+ http://msdn2.microsoft.com/en-us/library/bb429476.aspx
+- StyleCop for checking coding style:
+ http://code.msdn.microsoft.com/sourceanalysis
+
Compiling:
- Open the solution file Src/CheckSumTool.sln to your IDE.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-26 11:35:56
|
Revision: 259
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=259&view=rev
Author: kimmov
Date: 2009-04-26 11:35:51 +0000 (Sun, 26 Apr 2009)
Log Message:
-----------
Bugfix: Adding large file (over 2 GB) caused a crash.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Src/Locality.cs
trunk/Src/SumLib/CheckSumFileList.cs
trunk/Src/SumLib/CheckSumItem.cs
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-04-26 10:55:08 UTC (rev 258)
+++ trunk/Documents/ChangeLog.txt 2009-04-26 11:35:51 UTC (rev 259)
@@ -9,6 +9,7 @@
Allow drag&drop folders from Windows Explorer
Installer: Prevent starting second instance
Bugfix: Product name was wrong (without space) in About-dialog.
+ Bugfix: Adding large file (over 2 GB) caused a crash (r259)
CheckSum Tool 0.5.0 - 2008-04-27 (r217)
New toolbar/menuitem icons from famfamfam.com (#1883992)
Modified: trunk/Src/Locality.cs
===================================================================
--- trunk/Src/Locality.cs 2009-04-26 10:55:08 UTC (rev 258)
+++ trunk/Src/Locality.cs 2009-04-26 11:35:51 UTC (rev 259)
@@ -1,7 +1,8 @@
/*
The MIT License
-Copyright (c) 2007-2008 Ixonos Plc, Kimmo Varis <kim...@ix...>
+Copyright (c) 2007-2008 Ixonos Plc
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -42,7 +43,7 @@
/// </summary>
/// <param name="bytes">File size as a plain number.</param>
/// <returns>File size as localized short number string.</returns>
- public static string GetShortFileSize(int bytes)
+ public static string GetShortFileSize(long bytes)
{
if (bytes < 0)
return Convert.ToString(bytes);
@@ -125,5 +126,12 @@
string size = Locality.GetShortFileSize(1100000000);
Assert.IsTrue(size.EndsWith(" GB"));
}
+
+ [Test]
+ public void ShortSizeGiga2()
+ {
+ string size = Locality.GetShortFileSize(5100000000);
+ Assert.IsTrue(size.EndsWith(" GB"));
+ }
}
}
Modified: trunk/Src/SumLib/CheckSumFileList.cs
===================================================================
--- trunk/Src/SumLib/CheckSumFileList.cs 2009-04-26 10:55:08 UTC (rev 258)
+++ trunk/Src/SumLib/CheckSumFileList.cs 2009-04-26 11:35:51 UTC (rev 259)
@@ -2,7 +2,7 @@
The MIT License
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 2007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -128,7 +128,7 @@
/// <param name="file">Path to file to add.</param>
public void AddFile(string file)
{
- AddFile(file, "");
+ AddFile(file, String.Empty);
}
/// <summary>
@@ -141,9 +141,9 @@
CheckSumItem newItem = new CheckSumItem(file);
FileInfo fileInfo = new FileInfo(file);
- newItem.Size = Convert.ToInt32(fileInfo.Length);
+ newItem.Size = fileInfo.Length;
- if (checksum != null && checksum != "")
+ if (checksum != null && checksum != String.Empty)
newItem.SetSum(checksum);
_listChanged = true;
@@ -181,7 +181,7 @@
CheckSumItem newItem = new CheckSumItem(fi.FullName);
FileInfo fileInfo = new FileInfo(fi.FullName);
- newItem.Size = Convert.ToInt32(fileInfo.Length);
+ newItem.Size = fileInfo.Length;
_fileList.Add(newItem);
}
Modified: trunk/Src/SumLib/CheckSumItem.cs
===================================================================
--- trunk/Src/SumLib/CheckSumItem.cs 2009-04-26 10:55:08 UTC (rev 258)
+++ trunk/Src/SumLib/CheckSumItem.cs 2009-04-26 11:35:51 UTC (rev 259)
@@ -2,7 +2,7 @@
The MIT License
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 2007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -62,7 +62,7 @@
/// <summary>
/// Size for the item
/// </summary>
- private int _size;
+ private long _size;
/// <summary>
/// Checksum calculated for the item
@@ -98,7 +98,7 @@
/// <summary>
/// Size for the item.
/// </summary>
- public int Size
+ public long Size
{
get { return _size; }
set { _size = value; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-26 10:55:12
|
Revision: 258
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=258&view=rev
Author: kimmov
Date: 2009-04-26 10:55:08 +0000 (Sun, 26 Apr 2009)
Log Message:
-----------
Tests: Adding more unit tests. CheckSumData* classes now have 100% coverity.
Modified Paths:
--------------
trunk/Src/SumLib/CheckSumDataCRC32.cs
trunk/Src/SumLib/CheckSumDataMD5.cs
trunk/Src/SumLib/CheckSumDataSHA1.cs
Modified: trunk/Src/SumLib/CheckSumDataCRC32.cs
===================================================================
--- trunk/Src/SumLib/CheckSumDataCRC32.cs 2009-04-25 22:53:05 UTC (rev 257)
+++ trunk/Src/SumLib/CheckSumDataCRC32.cs 2009-04-26 10:55:08 UTC (rev 258)
@@ -2,7 +2,7 @@
The MIT License
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 2007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -92,6 +92,22 @@
}
[Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmall2()
+ {
+ byte[] data = { 2, 3, 4 };
+ CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSLarge()
+ {
+ byte[] data = { 2, 3, 4, 5, 6 };
+ CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
+ }
+
+ [Test]
public void Construct()
{
byte[] data = { 2, 3, 4, 5 };
@@ -125,6 +141,22 @@
}
[Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmallStr2()
+ {
+ string data = "020304";
+ CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructLargeStr()
+ {
+ string data = "0203040506";
+ CheckSumDataCRC32 csData = new CheckSumDataCRC32(data);
+ }
+
+ [Test]
public void ConstructStr()
{
string data = "02030405";
Modified: trunk/Src/SumLib/CheckSumDataMD5.cs
===================================================================
--- trunk/Src/SumLib/CheckSumDataMD5.cs 2009-04-25 22:53:05 UTC (rev 257)
+++ trunk/Src/SumLib/CheckSumDataMD5.cs 2009-04-26 10:55:08 UTC (rev 258)
@@ -2,7 +2,7 @@
The MIT License
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 1007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 1007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -26,6 +26,7 @@
// $Id$
using System;
+using NUnit.Framework;
namespace CheckSumTool.SumLib
{
@@ -59,4 +60,185 @@
Set(data);
}
}
+
+ /// <summary>
+ /// Unit test class for CheckSumDataMD5 class.
+ /// </summary>
+ [TestFixture]
+ public class TestCheckSumDataMD5
+ {
+ [Test]
+ [ExpectedException(typeof(ArgumentNullException))]
+ public void ConstructNull()
+ {
+ byte[] data = null;
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructEmpty()
+ {
+ byte[] data = new byte[0];
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmall()
+ {
+ byte[] data = { 2, 3, 4, 5 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmall2()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructLarge()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ public void Construct()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f", csData.ToString());
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentNullException))]
+ public void ConstructNullStr()
+ {
+ string data = null;
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructEmptyStr()
+ {
+ string data = String.Empty;
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmallStr()
+ {
+ string data = "01020304";
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmallStr2()
+ {
+ string data = "000102030405060708090a0b0c0d0e";
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructLargeStr()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f10";
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ }
+
+ [Test]
+ public void ConstructStr()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f";
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f", csData.ToString());
+ }
+
+ [Test]
+ public void GetStringFromBytes()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+
+ string strData = csData.ToString();
+ Assert.IsNotNull(strData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f", strData);
+ }
+
+ [Test]
+ public void GetStringFromString()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f";
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+
+ string strData = csData.ToString();
+ Assert.IsNotNull(strData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f", strData);
+ }
+
+ [Test]
+ public void GetBytesFromBytes()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+
+ byte[] byData = csData.GetAsByteArray();
+ Assert.IsNotNull(byData);
+ Assert.AreEqual(byData.Length, CheckSumDataMD5.Length);
+ Assert.AreEqual(data, byData);
+ }
+
+ [Test]
+ public void GetBytesFromString()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f";
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+
+ byte[] byData = csData.GetAsByteArray();
+ byte[] veData = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
+ Assert.IsNotNull(byData);
+ Assert.AreEqual(byData.Length, CheckSumDataMD5.Length);
+ Assert.AreEqual(veData, byData);
+ }
+
+ [Test]
+ public void ClearingForBytes()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+
+ csData.Clear();
+ byte[] byData = csData.GetAsByteArray();
+ Assert.IsNull(byData);
+ }
+
+ [Test]
+ public void ClearingForString()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
+ CheckSumDataMD5 csData = new CheckSumDataMD5(data);
+ Assert.IsNotNull(csData);
+
+ csData.Clear();
+ string strData = csData.GetAsString();
+ Assert.IsNotNull(strData);
+ Assert.AreEqual(String.Empty, strData);
+ }
+ }
}
Modified: trunk/Src/SumLib/CheckSumDataSHA1.cs
===================================================================
--- trunk/Src/SumLib/CheckSumDataSHA1.cs 2009-04-25 22:53:05 UTC (rev 257)
+++ trunk/Src/SumLib/CheckSumDataSHA1.cs 2009-04-26 10:55:08 UTC (rev 258)
@@ -2,7 +2,7 @@
The MIT License
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 2007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -26,6 +26,7 @@
// $Id$
using System;
+using NUnit.Framework;
namespace CheckSumTool.SumLib
{
@@ -59,4 +60,185 @@
Set(data);
}
}
+
+ /// <summary>
+ /// Unit test class for CheckSumDataSHA1 class.
+ /// </summary>
+ [TestFixture]
+ public class TestCheckSumDataSHA1
+ {
+ [Test]
+ [ExpectedException(typeof(ArgumentNullException))]
+ public void ConstructNull()
+ {
+ byte[] data = null;
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructEmpty()
+ {
+ byte[] data = new byte[0];
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmall()
+ {
+ byte[] data = { 2, 3, 4, 5 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmall2()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructLarge()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ public void Construct()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f10111213", csData.ToString());
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentNullException))]
+ public void ConstructNullStr()
+ {
+ string data = null;
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructEmptyStr()
+ {
+ string data = String.Empty;
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmallStr()
+ {
+ string data = "01020304";
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructSmallStr2()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f101112";
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ [ExpectedException(typeof(ArgumentException))]
+ public void ConstructLargeStr()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f1011121314";
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ }
+
+ [Test]
+ public void ConstructStr()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f10111213";
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f10111213", csData.ToString());
+ }
+
+ [Test]
+ public void GetStringFromBytes()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+
+ string strData = csData.ToString();
+ Assert.IsNotNull(strData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f10111213", strData);
+ }
+
+ [Test]
+ public void GetStringFromString()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f10111213";
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+
+ string strData = csData.ToString();
+ Assert.IsNotNull(strData);
+ Assert.AreEqual("000102030405060708090a0b0c0d0e0f10111213", strData);
+ }
+
+ [Test]
+ public void GetBytesFromBytes()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+
+ byte[] byData = csData.GetAsByteArray();
+ Assert.IsNotNull(byData);
+ Assert.AreEqual(byData.Length, CheckSumDataSHA1.Length);
+ Assert.AreEqual(data, byData);
+ }
+
+ [Test]
+ public void GetBytesFromString()
+ {
+ string data = "000102030405060708090a0b0c0d0e0f10111213";
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+
+ byte[] byData = csData.GetAsByteArray();
+ byte[] veData = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
+ Assert.IsNotNull(byData);
+ Assert.AreEqual(byData.Length, CheckSumDataSHA1.Length);
+ Assert.AreEqual(veData, byData);
+ }
+
+ [Test]
+ public void ClearingForBytes()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+
+ csData.Clear();
+ byte[] byData = csData.GetAsByteArray();
+ Assert.IsNull(byData);
+ }
+
+ [Test]
+ public void ClearingForString()
+ {
+ byte[] data = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
+ CheckSumDataSHA1 csData = new CheckSumDataSHA1(data);
+ Assert.IsNotNull(csData);
+
+ csData.Clear();
+ string strData = csData.GetAsString();
+ Assert.IsNotNull(strData);
+ Assert.AreEqual(String.Empty, strData);
+ }
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-25 22:53:11
|
Revision: 257
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=257&view=rev
Author: kimmov
Date: 2009-04-25 22:53:05 +0000 (Sat, 25 Apr 2009)
Log Message:
-----------
Docs: Add specs for fileformats we support.
Added Paths:
-----------
trunk/Documents/FileFormats/
trunk/Documents/FileFormats/MD5.txt
trunk/Documents/FileFormats/SFV.txt
trunk/Documents/FileFormats/SHA1.txt
Added: trunk/Documents/FileFormats/MD5.txt
===================================================================
--- trunk/Documents/FileFormats/MD5.txt (rev 0)
+++ trunk/Documents/FileFormats/MD5.txt 2009-04-25 22:53:05 UTC (rev 257)
@@ -0,0 +1,25 @@
+MD5 File Format Specification
+------------------------------
+$Id$
+
+MD5 files are simple text files containing MD5 sums and filenames. Files are
+in line-format, each line containing one MD5-sum and filename.
+
+MD5-sum lines are formatted as
+[sum]|[filename]
+where
+ [sum] is the MD5 sum
+ | (pipe) is a separator
+ [filename] is the filename [+ path]
+
+Empty lines are ignored. Lines starting with ';' are comments and are ignored.
+
+
+Example file:
+-------------------------------------------------
+
+; MD5 checksum file
+; Generated with Cygwin's md5sum tool
+78cf91daf373e286415c36a8b035dba9|TextFile1.txt
+e76f8a2f7ae08dfa86df819e7d7639c3|TextFile2.txt
+9f089d9a25ea55c459680009910bec73|TextFile3.txt
Property changes on: trunk/Documents/FileFormats/MD5.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/Documents/FileFormats/SFV.txt
===================================================================
--- trunk/Documents/FileFormats/SFV.txt (rev 0)
+++ trunk/Documents/FileFormats/SFV.txt 2009-04-25 22:53:05 UTC (rev 257)
@@ -0,0 +1,28 @@
+SFV File Format Specification
+------------------------------
+$Id$
+
+SFV files are simple text files containing CRC-32 sums and filenames. Files are
+in line-format, each line containing one CRC-32 sum and filename.
+
+CRC-32 sum lines are formatted as
+[filename] [sum]
+where
+ [filename] is the filename [+ path]
+ one or more space or tab chars are separator
+ [sum] is the CRC-32 sum
+
+Empty lines are ignored. Lines starting with ';' are comments and are ignored.
+
+
+Example file:
+-------------------------------------------------
+
+; CRC-32 sums generated by CheckSum Tool version 0.4.0.24198
+; http://checksumtool.sourceforge.net/
+; Created 4.2.2008 13:35:43
+NotStandardTestFile1.md5 692ccfbd
+NotStandardTestFile1.sha1 4fa6e929
+TestFile1.dat 8ca66b7b
+TextFile1.txt b046e6f2
+SubFolder/Sub1TextFile1.txt 1b851995
Property changes on: trunk/Documents/FileFormats/SFV.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/Documents/FileFormats/SHA1.txt
===================================================================
--- trunk/Documents/FileFormats/SHA1.txt (rev 0)
+++ trunk/Documents/FileFormats/SHA1.txt 2009-04-25 22:53:05 UTC (rev 257)
@@ -0,0 +1,29 @@
+SHA1 File Format Specification
+------------------------------
+$Id$
+
+SHA1 files are simple text files containing SHA-1 sums and filenames. Files are
+in line-format, each line containing one SHA-1 sum and filename.
+
+SHA-1 sum lines are formatted as
+[sum] [filename]
+where
+ [sum] is the MD5 sum
+ one or more space or tab chars are separator
+ [filename] is the filename [+ path]
+
+Empty lines are ignored. Lines starting with ';' are comments and are ignored.
+
+
+Example file:
+-------------------------------------------------
+
+; SHA-1 sums generated by CheckSum Tool version 0.4.0.26749
+; http://checksumtool.sourceforge.net/
+; Created 31.1.2008 14:52:07
+94a3225c6bac573a06da75b05bcf6de59f65db2c TextFile1.txt
+3fa6b918ad3fb6ac645cdd3caa17cb6d1492c99b TextFile2.txt
+9f88f5c451feb859ff48ffe6c613437ac25c2b01 TextFile3.txt
+d3486ae9136e7856bc42212385ea797094475802 Sub1/Sub1TextFile1.txt
+c9094305e83cb09ff11a8477e99d4ebf499bc74f Sub1/Sub1TextFile2.txt
+48332327f98549fd2782ebc4622981cc99514067 Sub1/Sub1TextFile3.txt
\ No newline at end of file
Property changes on: trunk/Documents/FileFormats/SHA1.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-25 19:42:52
|
Revision: 256
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=256&view=rev
Author: kimmov
Date: 2009-04-25 19:42:43 +0000 (Sat, 25 Apr 2009)
Log Message:
-----------
Tests: Add more tests for recognizing sum file type.
Modified Paths:
--------------
trunk/Src/SumLib/SumFileUtils.cs
Added Paths:
-----------
trunk/TestData/MD5Files/File_md5.txt
trunk/TestData/SFVFiles/file_crc.txt
trunk/TestData/SFVFiles/file_sfv.txt
trunk/TestData/SHA1Files/file_sha1.txt
Modified: trunk/Src/SumLib/SumFileUtils.cs
===================================================================
--- trunk/Src/SumLib/SumFileUtils.cs 2009-04-24 11:50:25 UTC (rev 255)
+++ trunk/Src/SumLib/SumFileUtils.cs 2009-04-25 19:42:43 UTC (rev 256)
@@ -73,7 +73,7 @@
{
if (path == null)
throw new ArgumentNullException(path);
- if (path == "")
+ if (path == String.Empty)
throw new ArgumentException("Path is empty", "path");
FileInfo fi = new FileInfo(path);
@@ -130,7 +130,7 @@
[ExpectedException(typeof(ArgumentException))]
public void EmptyFileName()
{
- SumFileType ft = SumFileUtils.FindFileType("");
+ SumFileType ft = SumFileUtils.FindFileType(String.Empty);
}
/// <summary>
@@ -143,5 +143,75 @@
// Expect user doen't have this file..
SumFileType ft = SumFileUtils.FindFileType(@"C:\unique.txt");
}
+
+ /// <summary>
+ /// Test that SHA-1 file is recognized by filename extension.
+ /// </summary>
+ [Test]
+ public void ShaFile1()
+ {
+ SumFileType ft = SumFileUtils.FindFileType(@"../../TestData/SHA1Files/TestFile1.sha1");
+ Assert.AreEqual(SumFileType.SHA1, ft);
+ }
+
+ /// <summary>
+ /// Test that SHA-1 file is recognized by filename.
+ /// </summary>
+ [Test]
+ public void ShaFile2()
+ {
+ SumFileType ft = SumFileUtils.FindFileType(@"../../TestData/SHA1Files/file_sha1.txt");
+ Assert.AreEqual(SumFileType.SHA1, ft);
+ }
+
+ /// <summary>
+ /// Test that MD5 file is recognized by filename extension.
+ /// </summary>
+ [Test]
+ public void MD5File1()
+ {
+ SumFileType ft = SumFileUtils.FindFileType(@"../../TestData/MD5Files/TestFile1.md5");
+ Assert.AreEqual(SumFileType.MD5, ft);
+ }
+
+ /// <summary>
+ /// Test that MD5 file is recognized from filename.
+ /// </summary>
+ [Test]
+ public void MD5File2()
+ {
+ SumFileType ft = SumFileUtils.FindFileType(@"../../TestData/MD5Files/File_md5.txt");
+ Assert.AreEqual(SumFileType.MD5, ft);
+ }
+
+ /// <summary>
+ /// Test that CRC32 file is recognized by filename extension.
+ /// </summary>
+ [Test]
+ public void CRC32File1()
+ {
+ SumFileType ft = SumFileUtils.FindFileType(@"../../TestData/SFVFiles/TestFile1.sfv");
+ Assert.AreEqual(SumFileType.SFV, ft);
+ }
+
+ /// <summary>
+ /// Test that CRC32 file is recognized by filename.
+ /// </summary>
+ [Test]
+ public void CRC32File2()
+ {
+ SumFileType ft = SumFileUtils.FindFileType(@"../../TestData/SFVFiles/file_crc.txt");
+ Assert.AreEqual(SumFileType.SFV, ft);
+ }
+
+ /// <summary>
+ /// Test that CRC32 file is recognized by filename.
+ /// </summary>
+ [Test]
+ public void CRC32File3()
+ {
+ SumFileType ft = SumFileUtils.FindFileType(@"../../TestData/SFVFiles/file_sfv.txt");
+ Assert.AreEqual(SumFileType.SFV, ft);
+ }
}
}
Added: trunk/TestData/MD5Files/File_md5.txt
===================================================================
--- trunk/TestData/MD5Files/File_md5.txt (rev 0)
+++ trunk/TestData/MD5Files/File_md5.txt 2009-04-25 19:42:43 UTC (rev 256)
@@ -0,0 +1,5 @@
+; MD5 checksum file
+; Generated with Cygwin's md5sum tool
+78cf91daf373e286415c36a8b035dba9|TextFile1.txt
+e76f8a2f7ae08dfa86df819e7d7639c3|TextFile2.txt
+9f089d9a25ea55c459680009910bec73|TextFile3.txt
Property changes on: trunk/TestData/MD5Files/File_md5.txt
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/TestData/SFVFiles/file_crc.txt
===================================================================
--- trunk/TestData/SFVFiles/file_crc.txt (rev 0)
+++ trunk/TestData/SFVFiles/file_crc.txt 2009-04-25 19:42:43 UTC (rev 256)
@@ -0,0 +1,16 @@
+; CRC-32 sums generated by CheckSum Tool version 0.4.0.24198
+; http://checksumtool.sourceforge.net/
+; Created 4.2.2008 13:35:43
+NotStandardTestFile1.md5 692ccfbd
+NotStandardTestFile1.sha1 4fa6e929
+TestFile1.dat 8ca66b7b
+TestFile1.md5 8ca66b7b
+TestFile1.sha1 bc654d09
+TextFile1.txt b046e6f2
+TextFile2.txt 72935002
+TextFile3.txt 69dbc00f
+Sub1/Sub1TextFile1.txt 1b851995
+Sub1/Sub1TextFile2.txt 210c4839
+Sub1/Sub1TextFile3.txt 25d0bd72
+Sub1/Sub1/Sub1Sub1TextFile1.txt 0e2b82e8
+Sub1/Sub1/Sub1Sub1TextFile3.txt e4f410fe
Property changes on: trunk/TestData/SFVFiles/file_crc.txt
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/TestData/SFVFiles/file_sfv.txt
===================================================================
--- trunk/TestData/SFVFiles/file_sfv.txt (rev 0)
+++ trunk/TestData/SFVFiles/file_sfv.txt 2009-04-25 19:42:43 UTC (rev 256)
@@ -0,0 +1,16 @@
+; CRC-32 sums generated by CheckSum Tool version 0.4.0.24198
+; http://checksumtool.sourceforge.net/
+; Created 4.2.2008 13:35:43
+NotStandardTestFile1.md5 692ccfbd
+NotStandardTestFile1.sha1 4fa6e929
+TestFile1.dat 8ca66b7b
+TestFile1.md5 8ca66b7b
+TestFile1.sha1 bc654d09
+TextFile1.txt b046e6f2
+TextFile2.txt 72935002
+TextFile3.txt 69dbc00f
+Sub1/Sub1TextFile1.txt 1b851995
+Sub1/Sub1TextFile2.txt 210c4839
+Sub1/Sub1TextFile3.txt 25d0bd72
+Sub1/Sub1/Sub1Sub1TextFile1.txt 0e2b82e8
+Sub1/Sub1/Sub1Sub1TextFile3.txt e4f410fe
Property changes on: trunk/TestData/SFVFiles/file_sfv.txt
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/TestData/SHA1Files/file_sha1.txt
===================================================================
--- trunk/TestData/SHA1Files/file_sha1.txt (rev 0)
+++ trunk/TestData/SHA1Files/file_sha1.txt 2009-04-25 19:42:43 UTC (rev 256)
@@ -0,0 +1,9 @@
+; SHA-1 sums generated by CheckSum Tool version 0.4.0.26749
+; http://checksumtool.sourceforge.net/
+; Created 31.1.2008 14:52:07
+94a3225c6bac573a06da75b05bcf6de59f65db2c TextFile1.txt
+3fa6b918ad3fb6ac645cdd3caa17cb6d1492c99b TextFile2.txt
+9f88f5c451feb859ff48ffe6c613437ac25c2b01 TextFile3.txt
+d3486ae9136e7856bc42212385ea797094475802 Sub1/Sub1TextFile1.txt
+c9094305e83cb09ff11a8477e99d4ebf499bc74f Sub1/Sub1TextFile2.txt
+48332327f98549fd2782ebc4622981cc99514067 Sub1/Sub1TextFile3.txt
Property changes on: trunk/TestData/SHA1Files/file_sha1.txt
___________________________________________________________________
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-24 11:50:31
|
Revision: 255
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=255&view=rev
Author: kimmov
Date: 2009-04-24 11:50:25 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
Style, comment etc cleanups (most found by StyleCop).
Modified Paths:
--------------
trunk/Src/AboutForm.cs
trunk/Src/MainForm.cs
Modified: trunk/Src/AboutForm.cs
===================================================================
--- trunk/Src/AboutForm.cs 2009-04-24 10:36:13 UTC (rev 254)
+++ trunk/Src/AboutForm.cs 2009-04-24 11:50:25 UTC (rev 255)
@@ -2,7 +2,7 @@
The MIT License
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 2007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -42,21 +42,20 @@
/// <summary>
/// Program version.
/// </summary>
- string _version;
+ private string _version;
+
/// <summary>
/// Homepage URL.
/// </summary>
- string _url;
+ private string _url;
/// <summary>
/// Constructor. Set version number and link.
/// </summary>
public AboutForm()
{
- //
// The InitializeComponent() call is required for Windows Forms
// designer support.
- //
InitializeComponent();
GetInfo();
@@ -72,7 +71,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void BtnOkClick(object sender, EventArgs e)
+ private void BtnOkClick(object sender, EventArgs e)
{
this.Close();
}
@@ -80,7 +79,7 @@
/// <summary>
/// Get the program information.
/// </summary>
- void GetInfo()
+ private void GetInfo()
{
// Get name of current executable and get info from it.
Assembly curAssembly = Assembly.GetExecutingAssembly();
@@ -96,11 +95,11 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void LinkLabel1LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ private void LinkLabel1LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
string target = e.Link.LinkData as string;
- //Check that link looks like an URL and open it to browser.
+ // Check that link looks like an URL and open it to browser.
if (target.StartsWith(@"http://") || target.StartsWith("www."))
{
System.Diagnostics.Process.Start(target);
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-04-24 10:36:13 UTC (rev 254)
+++ trunk/Src/MainForm.cs 2009-04-24 11:50:25 UTC (rev 255)
@@ -2,7 +2,7 @@
The MIT License
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 2007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -46,45 +46,68 @@
/// <summary>
/// Relative path for folder where user manual is.
/// </summary>
- const string ManualFolder = "Manual";
+ private const string ManualFolder = "Manual";
+
/// <summary>
/// Filename of the user manual.
/// </summary>
- const string ManualFile = "Manual.html";
+ private const string ManualFile = "Manual.html";
+
/// <summary>
/// Relative path to folder containing documents.
/// </summary>
- const string DocsFolder = "Docs";
+ private const string DocsFolder = "Docs";
+
/// <summary>
/// Filename for the contributors list file.
/// </summary>
- const string ContributorsFile = "Contributors.txt";
+ private const string ContributorsFile = "Contributors.txt";
/// <summary>
/// A timer for updating GUI when doing background processing. This
/// processing can be adding (lots of) items, calculating or verifyin
/// checksums.
/// </summary>
- System.Windows.Forms.Timer _progressTimer;
+ private System.Windows.Forms.Timer _progressTimer;
/// <summary>
/// A shared class for sharing progress data between backround
/// processing and GUI.
/// </summary>
- ProgressInfo _progressInfo;
+ private ProgressInfo _progressInfo;
- delegate void DelegateCalculateSums(ref ProgressInfo progressInfo);
- delegate void DelegateAddFiles(ref ProgressInfo progressInfo, string path);
+ private delegate void DelegateCalculateSums(ref ProgressInfo progressInfo);
+ private delegate void DelegateAddFiles(ref ProgressInfo progressInfo, string path);
/// <summary>
/// Indices for list view columns
/// </summary>
- enum ListIndices
+ private enum ListIndices
{
+ /// <summary>
+ /// Column for the filename.
+ /// </summary>
FileName,
+
+ /// <summary>
+ /// Column for the checksum.
+ /// </summary>
CheckSum,
+
+ /// <summary>
+ /// Column telling if the checksum is verified and if verification
+ /// succeeded or failed.
+ /// </summary>
Verified,
+
+ /// <summary>
+ /// Column for item's full path.
+ /// </summary>
FullPath,
+
+ /// <summary>
+ /// Column for file size.
+ /// </summary>
Size,
Count, // Keep this as last item to get count of items
}
@@ -95,14 +118,14 @@
/// when opening new selection dialogs. Also sum file is most naturally
/// saved to last selected folder.
/// </summary>
- string _lastFolder;
+ private string _lastFolder;
/// <summary>
/// One and only instance of document having list of checksum items.
/// </summary>
- SumDocument _document = new SumDocument();
+ private SumDocument _document = new SumDocument();
- XPathHandler _handler;
+ private XPathHandler _handler;
/// <summary>
/// Constructor.
@@ -120,7 +143,7 @@
InitializeComponent();
InitChecksumsGui();
- statusbarLabel1.Text = "";
+ statusbarLabel1.Text = String.Empty;
statusbarLabelCount.Text = "0 items";
this.toolStripComboSumTypes.SelectedIndex = 0;
_document.SumType = CheckSumType.SHA1;
@@ -189,7 +212,7 @@
/// <summary>
/// Initialize various GUI items related to different checksums.
/// </summary>
- void InitChecksumsGui()
+ private void InitChecksumsGui()
{
mainMenuChecksumsMenu.DropDownItems.Add(new ToolStripSeparator());
@@ -207,11 +230,11 @@
/// <summary>
/// Initialize new file list.
/// </summary>
- void InitNewList()
+ private void InitNewList()
{
ClearAllItems();
//SetFilename(null);
- SetFilename("");
+ SetFilename(String.Empty);
_document.Items.ResetChanges();
}
@@ -233,7 +256,7 @@
/// Set the program title.
/// </summary>
/// <param name="filename">Filename to add to title.</param>
- void SetTitle(string filename)
+ private void SetTitle(string filename)
{
string title = filename + " - CheckSum Tool";
this.Text = title;
@@ -243,10 +266,10 @@
/// Add item to the GUI item list.
/// </summary>
/// <param name="item">Checksum item to add.</param>
- void AddItemToList(CheckSumItem item)
+ private void AddItemToList(CheckSumItem item)
{
ListViewItem listItem = itemList.Items.Add(item.FullPath,
- item.FileName, "");
+ item.FileName, String.Empty);
string[] listItems = new string[(int)ListIndices.Count - 1];
@@ -256,12 +279,12 @@
item.CheckSum.ToString();
}
else
- listItems[(int)ListIndices.CheckSum - 1] = "";
+ listItems[(int)ListIndices.CheckSum - 1] = String.Empty;
switch (item.Verified)
{
case VerificationState.NotVerified:
- listItems[(int)ListIndices.Verified - 1] = "";
+ listItems[(int)ListIndices.Verified - 1] = String.Empty;
break;
case VerificationState.VerifyOK:
listItems[(int)ListIndices.Verified - 1] = "OK";
@@ -280,7 +303,7 @@
listItems[(int)ListIndices.Size - 1] = size;
}
else
- listItems[(int)ListIndices.Size - 1] = "";
+ listItems[(int)ListIndices.Size - 1] = String.Empty;
listItems[(int)ListIndices.FullPath - 1] = item.FullPath;
itemList.Items[listItem.Index].SubItems.AddRange(listItems);
@@ -289,7 +312,7 @@
/// <summary>
/// Clears GUI list and adds items from docment to it.
/// </summary>
- void UpdateGUIListFromDoc()
+ private void UpdateGUIListFromDoc()
{
itemList.Items.Clear();
try
@@ -308,7 +331,7 @@
/// <summary>
/// Calculate checksums for items in the list.
/// </summary>
- void CalculateCheckSums()
+ private void CalculateCheckSums()
{
if (itemList.Items.Count == 0)
return;
@@ -327,7 +350,7 @@
/// <summary>
/// Removes selected items from the list.
/// </summary>
- void RemoveSelectedItems()
+ private void RemoveSelectedItems()
{
ListView.SelectedIndexCollection selections = itemList.SelectedIndices;
int[] indices = new int[selections.Count];
@@ -349,7 +372,7 @@
/// <summary>
/// Removes all items from list and from GUI.
/// </summary>
- void ClearAllItems()
+ private void ClearAllItems()
{
itemList.Items.Clear();
_document.Items.RemoveAll();
@@ -361,7 +384,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void AboutCheckSumToolMainMenuItemClick(object sender, EventArgs e)
+ private void AboutCheckSumToolMainMenuItemClick(object sender, EventArgs e)
{
AboutForm form = new AboutForm();
form.Show(this);
@@ -372,7 +395,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ExitToolStripMenuItemClick(object sender, EventArgs e)
+ private void ExitToolStripMenuItemClick(object sender, EventArgs e)
{
this.Close();
}
@@ -380,7 +403,7 @@
/// <summary>
/// Verify that checksums in the list match to file's actual checksums.
/// </summary>
- void VerifyCheckSums()
+ private void VerifyCheckSums()
{
if (itemList.Items.Count == 0)
return;
@@ -399,7 +422,7 @@
/// Calculate checksums - this is the asynchronous method.
/// </summary>
/// <param name="progressInfo">Progress information.</param>
- void DoVerifyCheckSums(ref ProgressInfo progressInfo)
+ private void DoVerifyCheckSums(ref ProgressInfo progressInfo)
{
bool allSucceeded = _document.VerifySums(ref progressInfo);
@@ -418,7 +441,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MenuFileSaveClick(object sender, EventArgs e)
+ private void MenuFileSaveClick(object sender, EventArgs e)
{
SaveFile();
}
@@ -427,7 +450,7 @@
/// Save the file with previously selected filename. Or if no selected
/// filename, asks for it.
/// </summary>
- void SaveFile()
+ private void SaveFile()
{
if (_document.Items.FileList.Count == 0 ||
_document.Items.HasCheckSums == false)
@@ -447,7 +470,7 @@
/// Asks user filename to use when saving the checksums and saves
/// checksums to the file.
/// </summary>
- void SaveFileAs()
+ private void SaveFileAs()
{
int sumtype = 0;
@@ -501,7 +524,7 @@
/// Save the file with given filename (full path).
/// </summary>
/// <param name="fileName">Filename to save to (full path).</param>
- void SaveFile(string fileName)
+ private void SaveFile(string fileName)
{
// No changes, don't bother saving.
if (!_document.Items.HasChanged)
@@ -545,7 +568,7 @@
/// sumfile type.
/// </summary>
/// <param name="fileType">File type loaded.</param>
- void SetSumTypeCombo(SumFileType fileType)
+ private void SetSumTypeCombo(SumFileType fileType)
{
int ind;
switch (fileType)
@@ -574,7 +597,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MenuFileOpenClick(object sender, EventArgs e)
+ private void MenuFileOpenClick(object sender, EventArgs e)
{
LoadFile();
}
@@ -583,7 +606,7 @@
/// Shows Open-dialog for user to select the file to load. And opens
/// the file user selected.
/// </summary>
- void LoadFile()
+ private void LoadFile()
{
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "MD5 Files (*.MD5)|*.MD5";
@@ -641,7 +664,7 @@
/// <summary>
/// Asks user to select one or more files to add to checksum list.
/// </summary>
- void AddFile()
+ private void AddFile()
{
OpenFileDialog dlg = new OpenFileDialog();
dlg.Multiselect = true;
@@ -667,7 +690,7 @@
/// subfolders, ask if the user wants to add all files in subfolders
/// also.
/// </summary>
- void AddFolder()
+ private void AddFolder()
{
FolderBrowserDialog dlg = new FolderBrowserDialog();
dlg.Description = "Select folder whose contents to add to the list.";
@@ -680,11 +703,11 @@
if (Directory.GetDirectories(path).Length > 0)
{
- const string message = "The selected folder contains one " +
+ const string Message = "The selected folder contains one " +
"or more subfolders. Do you want to add all files " +
"from all the subfolders?\n\nSelecting No adds only " +
"files in the selected folder.";
- DialogResult result = MessageBox.Show(message,
+ DialogResult result = MessageBox.Show(Message,
"CheckSum Tool", MessageBoxButtons.YesNo,
MessageBoxIcon.Warning);
@@ -692,19 +715,19 @@
StartProgress("Adding files...", true);
if (result == DialogResult.Yes)
{
- DelegateAddFiles delInstance = new DelegateAddFiles (_document.Items.AddSubFolders);
+ DelegateAddFiles delInstance = new DelegateAddFiles(_document.Items.AddSubFolders);
delInstance.BeginInvoke(ref _progressInfo, path, null, null);
}
else
{
- DelegateAddFiles delInstance = new DelegateAddFiles (_document.Items.AddFolder);
+ DelegateAddFiles delInstance = new DelegateAddFiles(_document.Items.AddFolder);
delInstance.BeginInvoke(ref _progressInfo, path, null, null);
}
}
else
{
StartProgress("Adding files...", true);
- DelegateAddFiles delInstance = new DelegateAddFiles (_document.Items.AddFolder);
+ DelegateAddFiles delInstance = new DelegateAddFiles(_document.Items.AddFolder);
delInstance.BeginInvoke(ref _progressInfo, path, null, null);
}
@@ -717,7 +740,7 @@
/// </summary>
/// <param name="column">Column to change.</param>
/// <param name="text">New column name.</param>
- void SetListColumnHeader(ListIndices column, string text)
+ private void SetListColumnHeader(ListIndices column, string text)
{
itemList.Columns[(int)column].Text = text;
}
@@ -726,7 +749,7 @@
/// Set the checsum tyle for GUI list.
/// </summary>
/// <param name="sumtype">Checksum type.</param>
- void SetListSumType(CheckSumType sumtype)
+ private void SetListSumType(CheckSumType sumtype)
{
string colname = CheckSumImplList.GetImplementationName(sumtype);
SetListColumnHeader(ListIndices.CheckSum, colname);
@@ -735,15 +758,15 @@
/// <summary>
/// Clear checksums and verification status from list's items.
/// </summary>
- void ClearSums()
+ private void ClearSums()
{
_document.ClearAllSums();
int itemcount = itemList.Items.Count;
for (int i = 0; i < itemcount; i++)
{
- itemList.Items[i].SubItems[(int)ListIndices.CheckSum].Text = "";
- itemList.Items[i].SubItems[(int)ListIndices.Verified].Text = "";
+ itemList.Items[i].SubItems[(int)ListIndices.CheckSum].Text = String.Empty;
+ itemList.Items[i].SubItems[(int)ListIndices.Verified].Text = String.Empty;
}
}
@@ -752,7 +775,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnOpenClick(object sender, EventArgs e)
+ private void ToolStripBtnOpenClick(object sender, EventArgs e)
{
LoadFile();
}
@@ -762,7 +785,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnSaveClick(object sender, EventArgs e)
+ private void ToolStripBtnSaveClick(object sender, EventArgs e)
{
SaveFile();
}
@@ -772,7 +795,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuFileAddFileClick(object sender, EventArgs e)
+ private void MainMenuFileAddFileClick(object sender, EventArgs e)
{
AddFile();
}
@@ -782,7 +805,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuFileAddFolderClick(object sender, EventArgs e)
+ private void MainMenuFileAddFolderClick(object sender, EventArgs e)
{
AddFolder();
}
@@ -792,7 +815,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ClearToolStripMenuItemClick(object sender, EventArgs e)
+ private void ClearToolStripMenuItemClick(object sender, EventArgs e)
{
ClearAllItems();
}
@@ -802,7 +825,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuEditRemoveSelectedClick(object sender, EventArgs e)
+ private void MainMenuEditRemoveSelectedClick(object sender, EventArgs e)
{
RemoveSelectedItems();
}
@@ -812,7 +835,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnCalculateClick(object sender, EventArgs e)
+ private void ToolStripBtnCalculateClick(object sender, EventArgs e)
{
CalculateCheckSums();
}
@@ -822,7 +845,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnVerifyClick(object sender, EventArgs e)
+ private void ToolStripBtnVerifyClick(object sender, EventArgs e)
{
VerifyCheckSums();
}
@@ -832,7 +855,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolBarSumTypesSelectionChanged(object sender, EventArgs e)
+ private void ToolBarSumTypesSelectionChanged(object sender, EventArgs e)
{
int sumSelection = toolStripComboSumTypes.SelectedIndex;
SetCurrentSumType((CheckSumType) sumSelection);
@@ -842,7 +865,7 @@
/// Set current checksum type.
/// </summary>
/// <param name="sumtype">Checksumtype to set as current.</param>
- void SetCurrentSumType(CheckSumType sumtype)
+ private void SetCurrentSumType(CheckSumType sumtype)
{
// If sumtype already matches, it means we are loading sum
// file and so don't want to clear existing items!
@@ -861,7 +884,7 @@
// Clear filename so we ask it while saving
// and don't override file with wrong (old) name.
- SetFilename("");
+ SetFilename(String.Empty);
}
/// <summary>
@@ -869,7 +892,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuChecksumsCalculateAllClick(object sender, EventArgs e)
+ private void MainMenuChecksumsCalculateAllClick(object sender, EventArgs e)
{
CalculateCheckSums();
}
@@ -879,7 +902,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuChecksumsVerifyAllClick(object sender, EventArgs e)
+ private void MainMenuChecksumsVerifyAllClick(object sender, EventArgs e)
{
VerifyCheckSums();
}
@@ -889,7 +912,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuFileNewClick(object sender, EventArgs e)
+ private void MainMenuFileNewClick(object sender, EventArgs e)
{
InitNewList();
}
@@ -898,10 +921,10 @@
/// Set the current filename.
/// </summary>
/// <param name="filename">Filename to use, null or empty if no file.</param>
- void SetFilename(string filename)
+ private void SetFilename(string filename)
{
_document.Filename = filename;
- if (filename == null || filename == "")
+ if (filename == null || filename == String.Empty)
{
SetTitle("Untitled");
}
@@ -917,7 +940,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuFileSaveAsClick(object sender, EventArgs e)
+ private void MainMenuFileSaveAsClick(object sender, EventArgs e)
{
SaveFileAs();
}
@@ -926,7 +949,7 @@
/// Get full path to the manual file.
/// </summary>
/// <returns>Full path to the manual file.</returns>
- static string GetManualFile()
+ private static string GetManualFile()
{
string programPath = Assembly.GetExecutingAssembly().Location;
string programFile = Path.GetFileName(programPath);
@@ -941,7 +964,7 @@
/// Get full path to the contributors list file.
/// </summary>
/// <returns>Full path to the contributors list file.</returns>
- static string GetContributorsFile()
+ private static string GetContributorsFile()
{
string programPath = Assembly.GetExecutingAssembly().Location;
string programFile = Path.GetFileName(programPath);
@@ -955,7 +978,7 @@
/// <summary>
/// Show the user manual for user in the browser.
/// </summary>
- static void OpenManual()
+ private static void OpenManual()
{
string manualPath = GetManualFile();
FileInfo fi = new FileInfo(manualPath);
@@ -980,7 +1003,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuHelpManualClick(object sender, EventArgs e)
+ private void MainMenuHelpManualClick(object sender, EventArgs e)
{
OpenManual();
}
@@ -988,7 +1011,7 @@
/// <summary>
/// Opens a list of contributors.
/// </summary>
- static void OpenContributors()
+ private static void OpenContributors()
{
string contribPath = GetContributorsFile();
FileInfo fi = new FileInfo(contribPath);
@@ -1010,7 +1033,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuChecksumsMenuDropDownOpening(object sender, EventArgs e)
+ private void MainMenuChecksumsMenuDropDownOpening(object sender, EventArgs e)
{
string name = CheckSumImplList.GetImplementationName(_document.SumType);
foreach (ToolStripItem item in mainMenuChecksumsMenu.DropDownItems)
@@ -1035,7 +1058,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuEditSelectAllClick(object sender, EventArgs e)
+ private void MainMenuEditSelectAllClick(object sender, EventArgs e)
{
foreach (ListViewItem item in itemList.Items)
{
@@ -1048,7 +1071,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuEditCopyClick(object sender, EventArgs e)
+ private void MainMenuEditCopyClick(object sender, EventArgs e)
{
CopySumsToClipboard();
}
@@ -1056,7 +1079,7 @@
/// <summary>
/// Copy calculated and selected checksums to clipboard with filenames.
/// </summary>
- void CopySumsToClipboard()
+ private void CopySumsToClipboard()
{
ListView.SelectedIndexCollection selections = itemList.SelectedIndices;
int[] indices = new int[selections.Count];
@@ -1084,7 +1107,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuHelpContributorsClick(object sender, EventArgs e)
+ private void MainMenuHelpContributorsClick(object sender, EventArgs e)
{
OpenContributors();
}
@@ -1094,7 +1117,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnAddFilesClick(object sender, EventArgs e)
+ private void ToolStripBtnAddFilesClick(object sender, EventArgs e)
{
AddFile();
}
@@ -1104,7 +1127,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnAddFoldersClick(object sender, EventArgs e)
+ private void ToolStripBtnAddFoldersClick(object sender, EventArgs e)
{
AddFolder();
}
@@ -1114,7 +1137,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ItemListSizeChanged(object sender, System.EventArgs e)
+ private void ItemListSizeChanged(object sender, System.EventArgs e)
{
string statustext = string.Format("{0} items", _document.Items.Count);
statusbarLabelCount.Text = statustext;
@@ -1126,23 +1149,23 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainFormFormClosing(object sender, FormClosingEventArgs e)
+ private void MainFormFormClosing(object sender, FormClosingEventArgs e)
{
- //Setting MainForm ending values
+ // Setting MainForm ending values
FormSetting mainFormSetting = new FormSetting(_handler);
mainFormSetting.SaveSetting("MainForm",
this.Location.X,
this.Location.Y,
this.Width,
this.Height);
- //Setting toolStripFile ending values
+ // Setting toolStripFile ending values
ToolbarSetting toolStripFileSetting = new ToolbarSetting(_handler);
toolStripFileSetting.SaveSetting("toolStripFile",
toolStripFile.Location.X,
toolStripFile.Location.Y,
toolStripFile.Visible);
- //Setting toolStripSums ending values
+ // Setting toolStripSums ending values
ToolbarSetting toolStripSumsSetting = new ToolbarSetting(_handler);
toolStripSumsSetting.SaveSetting("toolStripSums",
toolStripSums.Location.X,
@@ -1180,9 +1203,9 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainFormLoad(object sender, EventArgs e)
+ private void MainFormLoad(object sender, EventArgs e)
{
- //Setting MainForm starting values
+ // Setting MainForm starting values
FormSetting mainFormSetting = new FormSetting(_handler);
mainFormSetting.GetSetting("MainForm");
@@ -1194,11 +1217,11 @@
Width = mainFormSetting.Width;
Height = mainFormSetting.Height;
- //Setting toolStripFile starting values
+ // Setting toolStripFile starting values
ToolbarSetting settingToolStripFile = new ToolbarSetting(_handler);
settingToolStripFile.GetSetting("toolStripFile");
- if(settingToolStripFile.X == -1 || settingToolStripFile.Y == -1)
+ if (settingToolStripFile.X == -1 || settingToolStripFile.Y == -1)
toolStripFile.Location = new Point(3, 24);
else
toolStripFile.Location = new Point(settingToolStripFile.X, settingToolStripFile.Y);
@@ -1207,11 +1230,11 @@
mainMenuViewToolbarsFile.Checked = toolStripFile.Visible;
contextMenuFile.Checked = toolStripFile.Visible;
- //Setting toolStripSums starting values
+ // Setting toolStripSums starting values
ToolbarSetting settingToolStripSums = new ToolbarSetting(_handler);
settingToolStripSums.GetSetting("toolStripSums");
- if(settingToolStripSums.X == -1 || settingToolStripSums.Y == -1)
+ if (settingToolStripSums.X == -1 || settingToolStripSums.Y == -1)
toolStripSums.Location = new Point(3, 49);
else
toolStripSums.Location = new Point(settingToolStripSums.X, settingToolStripSums.Y);
@@ -1220,21 +1243,21 @@
mainMenuViewToolbarsSums.Checked = toolStripSums.Visible;
contextMenuSums.Checked = toolStripSums.Visible;
- //Setting statusStrip1 starting values
+ // Setting statusStrip1 starting values
StatusbarSetting settingStatusStrip1 = new StatusbarSetting(_handler);
settingStatusStrip1.GetSetting("statusStrip1");
statusStrip1.Visible = settingStatusStrip1.Visible;
mainMenuViewStatusBar.Checked = statusStrip1.Visible;
- //Setting columnSize starting values
+ // Setting columnSize starting values
ColumnSetting settingColumnSize = new ColumnSetting(_handler);
settingColumnSize.GetSetting("columnSize");
columnSize.DisplayIndex = settingColumnSize.DisplayIndex;
columnSize.Width = settingColumnSize.Width;
- //Setting columnFullpath starting values
+ // Setting columnFullpath starting values
ColumnSetting settingColumnFullpath = new ColumnSetting(_handler);
settingColumnFullpath.GetSetting("columnFullpath");
@@ -1248,14 +1271,14 @@
columnVerified.DisplayIndex = settingColumnVerified.DisplayIndex;
columnVerified.Width = settingColumnVerified.Width;
- //Setting columnType starting values
+ // Setting columnType starting values
ColumnSetting settingColumnType = new ColumnSetting(_handler);
settingColumnType.GetSetting("columnType");
columnType.DisplayIndex = settingColumnType.DisplayIndex;
columnType.Width = settingColumnType.Width;
- //Setting columnFilename starting values
+ // Setting columnFilename starting values
ColumnSetting settingColumnFilename = new ColumnSetting(_handler);
settingColumnFilename.GetSetting("columnFilename");
@@ -1269,7 +1292,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuViewToolsFileClick(object sender, EventArgs e)
+ private void MainMenuViewToolsFileClick(object sender, EventArgs e)
{
toolStripFile.Visible = !toolStripFile.Visible;
mainMenuViewToolbarsFile.Checked = toolStripFile.Visible;
@@ -1282,7 +1305,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void MainMenuViewToolsSumsClick(object sender, EventArgs e)
+ private void MainMenuViewToolsSumsClick(object sender, EventArgs e)
{
toolStripSums.Visible = !toolStripSums.Visible;
mainMenuViewToolbarsSums.Checked = toolStripSums.Visible;
@@ -1295,7 +1318,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void StatusBarToolStripMenuItemClick(object sender, EventArgs e)
+ private void StatusBarToolStripMenuItemClick(object sender, EventArgs e)
{
statusStrip1.Visible = !statusStrip1.Visible;
mainMenuViewStatusBar.Checked = statusStrip1.Visible;
@@ -1307,7 +1330,7 @@
/// <param name="message">Message to show in GUI.</param>
/// <param name="noCount">Count of items not known, use the
/// marquee style progress bar.</param>
- void StartProgress(string message, bool noCount)
+ private void StartProgress(string message, bool noCount)
{
_progressTimer.Start();
this.UseWaitCursor = true;
@@ -1335,8 +1358,8 @@
/// Called when timer event is received.
/// </summary>
/// <param name="sender">The timer that fired.</param>
- /// <param name="eArgs"></param>
- void Timer_Tick(object sender, EventArgs eArgs)
+ /// <param name="args"></param>
+ private void Timer_Tick(object sender, EventArgs args)
{
if (sender == _progressTimer)
{
@@ -1347,7 +1370,7 @@
/// <summary>
/// Called when progress timer is fired.
/// </summary>
- void OnProgressTimer()
+ private void OnProgressTimer()
{
if (_progressInfo.IsStopping())
{
@@ -1380,7 +1403,7 @@
/// <summary>
/// Called when progress finishes.
/// </summary>
- void OnProgressReady()
+ private void OnProgressReady()
{
StoppingClock("Ready.");
@@ -1413,35 +1436,35 @@
/// <summary>
/// Called when Timer_Tick is starting to progress process.
/// </summary>
- void EnableStop()
+ private void EnableStop()
{
toolStripFile.Enabled = false;
toolStripBtnCalculate.Enabled = false;
toolStripBtnVerify.Enabled = false;
toolStripComboSumTypes.Enabled = false;
- //Menu items
+ // Menu items
foreach(object objectItem in fileToolStripMenuItem.DropDownItems)
{
- if(objectItem is ToolStripDropDownItem)
+ if (objectItem is ToolStripDropDownItem)
{
ToolStripDropDownItem item = (ToolStripDropDownItem) objectItem;
item.Enabled = false;
}
}
- foreach(object objectItem in mainMenuEditMenu.DropDownItems)
+ foreach (object objectItem in mainMenuEditMenu.DropDownItems)
{
- if(objectItem is ToolStripDropDownItem)
+ if (objectItem is ToolStripDropDownItem)
{
ToolStripDropDownItem item = (ToolStripDropDownItem) objectItem;
item.Enabled = false;
}
}
- foreach(object objectItem in mainMenuChecksumsMenu.DropDownItems)
+ foreach (object objectItem in mainMenuChecksumsMenu.DropDownItems)
{
- if(objectItem is ToolStripDropDownItem)
+ if (objectItem is ToolStripDropDownItem)
{
ToolStripDropDownItem item = (ToolStripDropDownItem) objectItem;
item.Enabled = false;
@@ -1450,7 +1473,7 @@
exitToolStripMenuItem.Enabled = true;
- //Enable Stop buttons
+ // Enable Stop buttons
toolStripBtnStop.Enabled = true;
mainMenuChecksumsStop.Enabled = true;
}
@@ -1458,35 +1481,35 @@
/// <summary>
/// Called when Timer_Tick is Ready or Stopping process
/// </summary>
- void DisableStop()
+ private void DisableStop()
{
toolStripFile.Enabled = true;
toolStripBtnCalculate.Enabled = true;
toolStripBtnVerify.Enabled = true;
toolStripComboSumTypes.Enabled = true;
- //Menu items
- foreach(object objectItem in fileToolStripMenuItem.DropDownItems)
+ // Menu items
+ foreach (object objectItem in fileToolStripMenuItem.DropDownItems)
{
- if(objectItem is ToolStripDropDownItem)
+ if (objectItem is ToolStripDropDownItem)
{
ToolStripDropDownItem item = (ToolStripDropDownItem) objectItem;
item.Enabled = true;
}
}
- foreach(object objectItem in mainMenuEditMenu.DropDownItems)
+ foreach (object objectItem in mainMenuEditMenu.DropDownItems)
{
- if(objectItem is ToolStripDropDownItem)
+ if (objectItem is ToolStripDropDownItem)
{
ToolStripDropDownItem item = (ToolStripDropDownItem) objectItem;
item.Enabled = true;
}
}
- foreach(object objectItem in mainMenuChecksumsMenu.DropDownItems)
+ foreach (object objectItem in mainMenuChecksumsMenu.DropDownItems)
{
- if(objectItem is ToolStripDropDownItem)
+ if (objectItem is ToolStripDropDownItem)
{
ToolStripDropDownItem item = (ToolStripDropDownItem) objectItem;
item.Enabled = true;
@@ -1501,7 +1524,7 @@
/// Stopping Clock and insertig some UI values.
/// </summary>
/// <param name="text"></param>
- void StoppingClock(string text)
+ private void StoppingClock(string text)
{
_progressTimer.Stop();
statusbarLabelProgressBar.Visible = false;
@@ -1518,7 +1541,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnStopClick(object sender, EventArgs e)
+ private void ToolStripBtnStopClick(object sender, EventArgs e)
{
if (_progressInfo != null)
_progressInfo.Stop();
@@ -1529,7 +1552,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnStopMouseEnter(object sender, EventArgs e)
+ private void ToolStripBtnStopMouseEnter(object sender, EventArgs e)
{
this.UseWaitCursor = false;
}
@@ -1539,7 +1562,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ToolStripBtnStopMouseHover(object sender, EventArgs e)
+ private void ToolStripBtnStopMouseHover(object sender, EventArgs e)
{
this.UseWaitCursor = false;
}
@@ -1549,7 +1572,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ItemListDragOver(object sender, DragEventArgs e)
+ private void ItemListDragOver(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.All;
}
@@ -1559,7 +1582,7 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
- void ItemListDragDrop(object sender, DragEventArgs e)
+ private void ItemListDragDrop(object sender, DragEventArgs e)
{
bool itemsAdded = false;
if (e.Data.GetDataPresent(DataFormats.Text))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-24 10:36:15
|
Revision: 254
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=254&view=rev
Author: kimmov
Date: 2009-04-24 10:36:13 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
Fix build error.
Modified Paths:
--------------
trunk/Src/MainForm.cs
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-04-24 10:22:40 UTC (rev 253)
+++ trunk/Src/MainForm.cs 2009-04-24 10:36:13 UTC (rev 254)
@@ -1564,7 +1564,7 @@
bool itemsAdded = false;
if (e.Data.GetDataPresent(DataFormats.Text))
{
- string filename = (string)e.Data.GetData(DataFormats.Text);
+ string path = (string)e.Data.GetData(DataFormats.Text);
_document.Items.Add(path, ref _progressInfo);
itemsAdded = true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-24 10:22:41
|
Revision: 253
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=253&view=rev
Author: kimmov
Date: 2009-04-24 10:22:40 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
Allow drag&drop folders from Windows Explorer.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Src/MainForm.cs
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-04-24 09:57:27 UTC (rev 252)
+++ trunk/Documents/ChangeLog.txt 2009-04-24 10:22:40 UTC (rev 253)
@@ -6,6 +6,7 @@
CheckSum Tool 0.6.0
Split code to two additional libraries (SumLib and Utils).
Allow drag&drop files from Windows Explorer
+ Allow drag&drop folders from Windows Explorer
Installer: Prevent starting second instance
Bugfix: Product name was wrong (without space) in About-dialog.
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-04-24 09:57:27 UTC (rev 252)
+++ trunk/Src/MainForm.cs 2009-04-24 10:22:40 UTC (rev 253)
@@ -1565,16 +1565,16 @@
if (e.Data.GetDataPresent(DataFormats.Text))
{
string filename = (string)e.Data.GetData(DataFormats.Text);
- _document.Items.AddFile(filename);
+ _document.Items.Add(path, ref _progressInfo);
itemsAdded = true;
}
else if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
- // Handle dropping files from Windows Explorer.
- string[] fileNames = (string[])e.Data.GetData(DataFormats.FileDrop);
- foreach (string filename in fileNames)
+ // Handle dropping files and folders from Windows Explorer.
+ string[] paths = (string[])e.Data.GetData(DataFormats.FileDrop);
+ foreach (string path in paths)
{
- _document.Items.AddFile(filename);
+ _document.Items.Add(path, ref _progressInfo);
}
itemsAdded = true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-24 09:57:38
|
Revision: 252
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=252&view=rev
Author: kimmov
Date: 2009-04-24 09:57:27 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
Allow drag&drop files from Windows Explorer.
Modified Paths:
--------------
trunk/Documents/ChangeLog.txt
trunk/Src/MainForm.Designer.cs
trunk/Src/MainForm.cs
trunk/Src/MainForm.resx
Modified: trunk/Documents/ChangeLog.txt
===================================================================
--- trunk/Documents/ChangeLog.txt 2009-04-24 09:00:49 UTC (rev 251)
+++ trunk/Documents/ChangeLog.txt 2009-04-24 09:57:27 UTC (rev 252)
@@ -5,6 +5,7 @@
CheckSum Tool 0.6.0
Split code to two additional libraries (SumLib and Utils).
+ Allow drag&drop files from Windows Explorer
Installer: Prevent starting second instance
Bugfix: Product name was wrong (without space) in About-dialog.
Modified: trunk/Src/MainForm.Designer.cs
===================================================================
--- trunk/Src/MainForm.Designer.cs 2009-04-24 09:00:49 UTC (rev 251)
+++ trunk/Src/MainForm.Designer.cs 2009-04-24 09:57:27 UTC (rev 252)
@@ -125,6 +125,7 @@
// itemList
//
this.itemList.AllowColumnReorder = true;
+ this.itemList.AllowDrop = true;
this.itemList.AutoArrange = false;
this.itemList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnFilename,
@@ -142,6 +143,8 @@
this.itemList.UseCompatibleStateImageBehavior = false;
this.itemList.View = System.Windows.Forms.View.Details;
this.itemList.SizeChanged += new System.EventHandler(this.ItemListSizeChanged);
+ this.itemList.DragDrop += new System.Windows.Forms.DragEventHandler(this.ItemListDragDrop);
+ this.itemList.DragOver += new System.Windows.Forms.DragEventHandler(this.ItemListDragOver);
//
// columnFilename
//
@@ -345,27 +348,27 @@
this.mainMenuViewToolbarsFile,
this.mainMenuViewToolbarsSums});
this.mainMenuViewToolbars.Name = "mainMenuViewToolbars";
- this.mainMenuViewToolbars.Size = new System.Drawing.Size(152, 22);
+ this.mainMenuViewToolbars.Size = new System.Drawing.Size(135, 22);
this.mainMenuViewToolbars.Text = "Toolbars";
//
// mainMenuViewToolbarsFile
//
this.mainMenuViewToolbarsFile.Name = "mainMenuViewToolbarsFile";
- this.mainMenuViewToolbarsFile.Size = new System.Drawing.Size(152, 22);
+ this.mainMenuViewToolbarsFile.Size = new System.Drawing.Size(110, 22);
this.mainMenuViewToolbarsFile.Text = "File";
this.mainMenuViewToolbarsFile.Click += new System.EventHandler(this.MainMenuViewToolsFileClick);
//
// mainMenuViewToolbarsSums
//
this.mainMenuViewToolbarsSums.Name = "mainMenuViewToolbarsSums";
- this.mainMenuViewToolbarsSums.Size = new System.Drawing.Size(152, 22);
+ this.mainMenuViewToolbarsSums.Size = new System.Drawing.Size(110, 22);
this.mainMenuViewToolbarsSums.Text = "Sums";
this.mainMenuViewToolbarsSums.Click += new System.EventHandler(this.MainMenuViewToolsSumsClick);
//
// mainMenuViewStatusBar
//
this.mainMenuViewStatusBar.Name = "mainMenuViewStatusBar";
- this.mainMenuViewStatusBar.Size = new System.Drawing.Size(152, 22);
+ this.mainMenuViewStatusBar.Size = new System.Drawing.Size(135, 22);
this.mainMenuViewStatusBar.Text = "Status Bar";
this.mainMenuViewStatusBar.Click += new System.EventHandler(this.StatusBarToolStripMenuItemClick);
//
@@ -459,7 +462,7 @@
this.toolStripBtnAddFolders});
this.toolStripFile.Location = new System.Drawing.Point(3, 24);
this.toolStripFile.Name = "toolStripFile";
- this.toolStripFile.Size = new System.Drawing.Size(110, 25);
+ this.toolStripFile.Size = new System.Drawing.Size(108, 25);
this.toolStripFile.TabIndex = 1;
this.toolStripFile.Text = "toolStrip1";
//
@@ -605,7 +608,7 @@
this.toolStripComboSumTypes});
this.toolStripSums.Location = new System.Drawing.Point(3, 49);
this.toolStripSums.Name = "toolStripSums";
- this.toolStripSums.Size = new System.Drawing.Size(158, 25);
+ this.toolStripSums.Size = new System.Drawing.Size(156, 25);
this.toolStripSums.TabIndex = 2;
//
// toolStripBtnCalculate
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-04-24 09:00:49 UTC (rev 251)
+++ trunk/Src/MainForm.cs 2009-04-24 09:57:27 UTC (rev 252)
@@ -1543,5 +1543,44 @@
{
this.UseWaitCursor = false;
}
+
+ /// <summary>
+ /// Determine if d&d is allowed
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ void ItemListDragOver(object sender, DragEventArgs e)
+ {
+ e.Effect = DragDropEffects.All;
+ }
+
+ /// <summary>
+ /// Handle dropping items to list.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ void ItemListDragDrop(object sender, DragEventArgs e)
+ {
+ bool itemsAdded = false;
+ if (e.Data.GetDataPresent(DataFormats.Text))
+ {
+ string filename = (string)e.Data.GetData(DataFormats.Text);
+ _document.Items.AddFile(filename);
+ itemsAdded = true;
+ }
+ else if (e.Data.GetDataPresent(DataFormats.FileDrop))
+ {
+ // Handle dropping files from Windows Explorer.
+ string[] fileNames = (string[])e.Data.GetData(DataFormats.FileDrop);
+ foreach (string filename in fileNames)
+ {
+ _document.Items.AddFile(filename);
+ }
+ itemsAdded = true;
+ }
+
+ if (itemsAdded)
+ UpdateGUIListFromDoc();
+ }
}
}
Modified: trunk/Src/MainForm.resx
===================================================================
--- trunk/Src/MainForm.resx 2009-04-24 09:00:49 UTC (rev 251)
+++ trunk/Src/MainForm.resx 2009-04-24 09:57:27 UTC (rev 252)
@@ -136,18 +136,18 @@
<data name="mainMenuFileOpen.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAmJJREFUOE+Fks1r
- E0EYh1P/CU+KJw+tUUpIRPEkSEGE9iBIBRWtCGIPUr14ih7axkslTWuhFLVoo2JB0BwUhCJCCWiTaFKT
- bNrahBjy0XST/d7NZn/OjN2QCo3LPswss79n3neYLsfez0GytJ/QtfMLHbEzL5MxR7A65B3uUqmkm6aJ
- djRNQyAQ8JPgIcK+TgIPDaqqClEUwfM8yuUykymKgpmZGVuyp4MJ6I40IAgCKpXKrmpI0vPfChqNBpPI
- sswk1Wq1VQkT/Ay5Ytl354zcPyz4uvN277aEVmK3Q9eYIPzco1lWE4BFXsrf+fKXD7vKpRJd11k7kiSx
- NSZIvHXXLFOFlp+AvOGHvPkUSnYR4eVPuwQ0YBgGk9CDbQm4YK9g6jVI6wGImUlsr9xFPjSA1dmTWJ8/
- g7Vnp5GZO0Ug38GzWF/ow2ZosE3wxm00lCL4xBS2Iz6UPt+BXuMgSyK7NBZpy8Y+8V+vB9orOG6w/psa
- QQFMGZYpQkhehZy5AZkbauMak2286qfnIBKhy8FNeXTLVGAKYTT4jzC2FqEX51CJ30IhMoRi5ArhEuEi
- Ct8ugN/Kw+t10SvsIhxwhGc9WtMQYFTfQy+9gFaYhpobhbw2THa+Djl9GVJqEFLyPMTVfjT1Erg5t9G6
- QNFHx1TL4El4HtpvP9TsAygbI6xsFor3QYidQH3lKGpfD5NOs+Cm3HpLkH7oLCi1RG1p6WVTyjyByD2G
- mJqAmByDkPBCiN9D/ccI6rFh1KM3cd/rtdKTvUJLkBrruZ3yHQkmxrvLUZ9T7ci4U/3uc9ZToz0BW/AH
- VqJ/7xuMoncAAAAASUVORK5CYII=
+ YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAmFJREFUOE+Fks1r
+ E1EUxVP/CVeKKxetUUpIRHElSEGEdiFIBRWtCGIXUt24Ci7axk0lTTRQglq0UbEgaBYKQhGhBLRJNKlJ
+ Jk1sQgz5aDrJfM9kMsc3z05IhcZhDu8Nd87vnXt5A7a9n4OktJ9oYOcXc8XOvkbWIpHRx29zVqtVVdd1
+ 9EpRFPh8Pi8xHiLa1w/gMo2yLIPnebAsi1qtRmGSJCEQCFiQPRkUYJ5oGjiOQ71e35WGOF3/TdButylE
+ FEUKaTQa3SQU8DPsiBfendOK/2jJM1iyercgZhKrHbNGAZHnLsUwOgAM8pr6u1/98mFXXBOiqiptRxAE
+ WqOA5Ftn09BlKKU5iHkvxM2nkArLiKx+2gUwDZqmUYg52C6ACQ1zutqEkPOBz85je+0uSuExrC+cRG7x
+ DDaenUY2eIqIfIfOIrc0gs3weA/gjVNrSxWwST+2ox5UP9+B2mQgCjy9NAZpy5I18V+vx3oTHNdo/x2F
+ SAJ0EYbOg0tdhZi9AZGZ6NE1Csu/GjXnwBOgw8b4XaqhS9C5CNrsR2hby1ArQdQTt1COTqASvUJ0iegi
+ yt8ugN0qwe12mFfYQXTAFllwKR2Ng9Z4D7X6Akr5EeTiNMSNSXLydYiZyxDS4xBS58Gvj6KjVsEEnVr3
+ AsUeHpMNjSXmRSi/vZAL9yHlp2hsakqMgIufQGvtKJpfD5NOC2D8TrULyDywl6Vmsrmy8rIjZJ+AZx6D
+ T8+BT82AS7rBJe6h9WMKrfgkWrGbJL7byMwPc11AembodtpzJJScHazFPHa5r2bt8nePvZWeHvJZgD9W
+ UX/ugJf0HgAAAABJRU5ErkJggg==
</value>
</data>
<data name="mainMenuFileSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -308,18 +308,18 @@
<data name="toolStripBtnOpen.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAmJJREFUOE+Fks1r
- E0EYh1P/CU+KJw+tUUpIRPEkSEGE9iBIBRWtCGIPUr14ih7axkslTWuhFLVoo2JB0BwUhCJCCWiTaFKT
- bNrahBjy0XST/d7NZn/OjN2QCo3LPswss79n3neYLsfez0GytJ/QtfMLHbEzL5MxR7A65B3uUqmkm6aJ
- djRNQyAQ8JPgIcK+TgIPDaqqClEUwfM8yuUykymKgpmZGVuyp4MJ6I40IAgCKpXKrmpI0vPfChqNBpPI
- sswk1Wq1VQkT/Ay5Ytl354zcPyz4uvN277aEVmK3Q9eYIPzco1lWE4BFXsrf+fKXD7vKpRJd11k7kiSx
- NSZIvHXXLFOFlp+AvOGHvPkUSnYR4eVPuwQ0YBgGk9CDbQm4YK9g6jVI6wGImUlsr9xFPjSA1dmTWJ8/
- g7Vnp5GZO0Ug38GzWF/ow2ZosE3wxm00lCL4xBS2Iz6UPt+BXuMgSyK7NBZpy8Y+8V+vB9orOG6w/psa
- QQFMGZYpQkhehZy5AZkbauMak2286qfnIBKhy8FNeXTLVGAKYTT4jzC2FqEX51CJ30IhMoRi5ArhEuEi
- Ct8ugN/Kw+t10SvsIhxwhGc9WtMQYFTfQy+9gFaYhpobhbw2THa+Djl9GVJqEFLyPMTVfjT1Erg5t9G6
- QNFHx1TL4El4HtpvP9TsAygbI6xsFor3QYidQH3lKGpfD5NOs+Cm3HpLkH7oLCi1RG1p6WVTyjyByD2G
- mJqAmByDkPBCiN9D/ccI6rFh1KM3cd/rtdKTvUJLkBrruZ3yHQkmxrvLUZ9T7ci4U/3uc9ZToz0BW/AH
- VqJ/7xuMoncAAAAASUVORK5CYII=
+ YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAmFJREFUOE+Fks1r
+ E1EUxVP/CVeKKxetUUpIRHElSEGEdiFIBRWtCGIXUt24Ci7axk0lTTRQglq0UbEgaBYKQhGhBLRJNKlJ
+ Jk1sQgz5aDrJfM9kMsc3z05IhcZhDu8Nd87vnXt5A7a9n4OktJ9oYOcXc8XOvkbWIpHRx29zVqtVVdd1
+ 9EpRFPh8Pi8xHiLa1w/gMo2yLIPnebAsi1qtRmGSJCEQCFiQPRkUYJ5oGjiOQ71e35WGOF3/TdButylE
+ FEUKaTQa3SQU8DPsiBfendOK/2jJM1iyercgZhKrHbNGAZHnLsUwOgAM8pr6u1/98mFXXBOiqiptRxAE
+ WqOA5Ftn09BlKKU5iHkvxM2nkArLiKx+2gUwDZqmUYg52C6ACQ1zutqEkPOBz85je+0uSuExrC+cRG7x
+ DDaenUY2eIqIfIfOIrc0gs3weA/gjVNrSxWwST+2ox5UP9+B2mQgCjy9NAZpy5I18V+vx3oTHNdo/x2F
+ SAJ0EYbOg0tdhZi9AZGZ6NE1Csu/GjXnwBOgw8b4XaqhS9C5CNrsR2hby1ArQdQTt1COTqASvUJ0iegi
+ yt8ugN0qwe12mFfYQXTAFllwKR2Ng9Z4D7X6Akr5EeTiNMSNSXLydYiZyxDS4xBS58Gvj6KjVsEEnVr3
+ AsUeHpMNjSXmRSi/vZAL9yHlp2hsakqMgIufQGvtKJpfD5NOC2D8TrULyDywl6Vmsrmy8rIjZJ+AZx6D
+ T8+BT82AS7rBJe6h9WMKrfgkWrGbJL7byMwPc11AembodtpzJJScHazFPHa5r2bt8nePvZWeHvJZgD9W
+ UX/ugJf0HgAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripBtnSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -385,12 +385,12 @@
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAV5JREFUOE+Nk8lO
- hFAQRW39CDd24s6NQ5QW9ZPcOMShHVZ8ggtCws/wL25IgEDLPHZZ9wlIAG1IbiBAnXfr1nuzrd9rjx93
+ hFAQRW39CDd24s6NQ5QW9ZPcOMShHRZ8gwtCws/wL25IgEDLPHZZ9wlIAG1IbiBAnXfr1nuzrd9rjx93
WTudd2OPFr/8ZK37H6U4jleGYVRlWdKY0jQlVVU/uHCftd0HyCgOw5CiKCKGibvv++R5HlmWJaCmaZKm
aQPIjGkyfkiShLLlOSVPEqXPCwruT2h1c0i2bQsAwFhE1/UGIoy0gPxFFoA8zwUM8u+Oyb4+GLSFRZs2
WkDxekHl26X4uSgKQt/Rwyl93R6R4zjCCdrA91FAPzxA4Ch+PKMgCEQerutOB8ANXMEJ+gcEwU5zgFbq
dpBJlmUCAv0JqKrqJywurN6v2uBEKwyA4Gazg9p6EyYcQCieBqingJWb4u59kgMRIAP6aiY1GKOiKOt2
- jJ0Ax84Ftn0XgA214PFE/x0mgBByfWYCrpG6B2oOSE3FFt0kFM+/ARNBZZRWN465AAAAAElFTkSuQmCC
+ jJ0Ax84Ftn0XgA214PFE/x0mgBByfWYCrpG6B2oOSE3FFt0kFM+/AQ8DZY4FEJX1AAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripBtnVerify.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-24 09:01:00
|
Revision: 251
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=251&view=rev
Author: kimmov
Date: 2009-04-24 09:00:49 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
Update copyright for year 2009.
Modified Paths:
--------------
trunk/Documents/Readme.txt
trunk/Src/AboutForm.Designer.cs
Modified: trunk/Documents/Readme.txt
===================================================================
--- trunk/Documents/Readme.txt 2009-04-24 08:41:31 UTC (rev 250)
+++ trunk/Documents/Readme.txt 2009-04-24 09:00:49 UTC (rev 251)
@@ -35,7 +35,7 @@
COPYING
-------
Copyright (c) 2007-2008 Ixonos Plc
-Copyright (c) 2007-2008 Kimmo Varis <ki...@wi...>
+Copyright (c) 2007-2009 Kimmo Varis <ki...@wi...>
CheckSum Tool is licensed under MIT licence, see Documents/COPYING file for
full license text.
Modified: trunk/Src/AboutForm.Designer.cs
===================================================================
--- trunk/Src/AboutForm.Designer.cs 2009-04-24 08:41:31 UTC (rev 250)
+++ trunk/Src/AboutForm.Designer.cs 2009-04-24 09:00:49 UTC (rev 251)
@@ -117,7 +117,7 @@
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(233, 23);
this.label4.TabIndex = 8;
- this.label4.Text = "(c) 2007-2008 Kimmo Varis";
+ this.label4.Text = "(c) 2007-2009 Kimmo Varis";
//
// AboutForm
//
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2009-04-24 08:41:40
|
Revision: 250
http://checksumtool.svn.sourceforge.net/checksumtool/?rev=250&view=rev
Author: kimmov
Date: 2009-04-24 08:41:31 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
Code cleanup: rename GetAppdataPath() method to GetAppDataPath().
Modified Paths:
--------------
trunk/Src/EnvironmentUtils.cs
trunk/Src/MainForm.cs
Modified: trunk/Src/EnvironmentUtils.cs
===================================================================
--- trunk/Src/EnvironmentUtils.cs 2009-04-24 08:26:44 UTC (rev 249)
+++ trunk/Src/EnvironmentUtils.cs 2009-04-24 08:41:31 UTC (rev 250)
@@ -40,7 +40,7 @@
/// C:\Documents and Settings\User\Application Data\ChecksumTool\
/// </summary>
/// <returns>Application data folder.</returns>
- public static string GetAppdataPath()
+ public static string GetAppDataPath()
{
string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
appDataPath = FileUtils.GetUnixPathFormat(appDataPath);
Modified: trunk/Src/MainForm.cs
===================================================================
--- trunk/Src/MainForm.cs 2009-04-24 08:26:44 UTC (rev 249)
+++ trunk/Src/MainForm.cs 2009-04-24 08:41:31 UTC (rev 250)
@@ -140,7 +140,7 @@
private void CheckConfigFile()
{
bool success = true;
- string appDataPath = EnvironmentUtils.GetAppdataPath();
+ string appDataPath = EnvironmentUtils.GetAppDataPath();
ConfigFile cfile = new ConfigFile(Application.StartupPath,
appDataPath);
if (!cfile.FileExists())
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|