Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Byron Penner committed Sep 6, 2015
1 parent d3c13ba commit aabda47
Show file tree
Hide file tree
Showing 9 changed files with 6,447 additions and 60 deletions.
65 changes: 63 additions & 2 deletions FileHasher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -28,12 +44,41 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Resources\filehasher.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>filehasher.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>77EBDC6B2074366EA8AB673855EC463C499CB0F5</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>FileHasher_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<TargetZone>LocalIntranet</TargetZone>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<SignManifests>true</SignManifests>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -63,6 +108,9 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="filehasher.pfx" />
<None Include="FileHasher_TemporaryKey.pfx" />
<None Include="Properties\app.manifest" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand All @@ -73,6 +121,19 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="Resources\filehasher.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\filehasher.ico" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
137 changes: 83 additions & 54 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ private void Form1_Load(object sender, EventArgs e)
groupBox3.Text = Properties.Resources.Group3Header;
group3Label.Text = Properties.Resources.Group3Label;
copyButton.Text = Properties.Resources.CopyButtonDefaultText;
compareButton.Text = Properties.Resources.CompareButtonDefaultText;
resultLabel.Text = Properties.Resources.ResultsLable;
saveButton.Text = Properties.Resources.SaveButtonDefaultText;
compareLabel.Text = Properties.Resources.CompareLabel;

saveFileDialog1.Filter = "Text|*.txt";
saveFileDialog1.Title = Properties.Resources.SaveDialogTitle;
Expand Down Expand Up @@ -162,5 +163,19 @@ private void radioButton1_CheckedChanged(object sender, EventArgs e)
resultTextBox.Text = "";
groupBox3.Enabled = false;
}

private void compareTextBox_TextChanged(object sender, EventArgs e)
{
if(string.IsNullOrEmpty(compareTextBox.Text))
{
compareTextBox.BackColor = System.Drawing.SystemColors.Control;
return;
}
if (compareTextBox.Text.ToUpper() == resultTextBox.Text.ToUpper())
compareTextBox.BackColor = System.Drawing.Color.LightGreen;
else
compareTextBox.BackColor = System.Drawing.Color.LightCoral;

}
}
}
Loading

0 comments on commit aabda47

Please sign in to comment.