Skip to content

Commit 9d47ed7

Browse files
committed
Edit report file. Add icons
1 parent 1dfa2ae commit 9d47ed7

8 files changed

Lines changed: 1190 additions & 63 deletions

File tree

Excel Differ/App.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
55
</startup>
6-
</configuration>
6+
</configuration>

Excel Differ/Excel Differ.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
<OutputType>WinExe</OutputType>
99
<RootNamespace>Excel_Differ</RootNamespace>
1010
<AssemblyName>Excel Differ</AssemblyName>
11-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<Deterministic>true</Deterministic>
15+
<TargetFrameworkProfile />
1516
</PropertyGroup>
1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1718
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -68,6 +69,7 @@
6869
<Compile Include="Properties\Resources.Designer.cs">
6970
<AutoGen>True</AutoGen>
7071
<DependentUpon>Resources.resx</DependentUpon>
72+
<DesignTime>True</DesignTime>
7173
</Compile>
7274
<None Include="Properties\Settings.settings">
7375
<Generator>SettingsSingleFileGenerator</Generator>

Excel Differ/Form1.Designer.cs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Excel Differ/Form1.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,19 @@ private void SaveReportToExcel(Tuple<List<string>, List<string>> report)
111111
var excelSheets = excelWorkbook.Sheets;
112112
var excelWorksheet = (Excel.Worksheet) excelSheets.Item[1];
113113

114-
var indexInclude = 1;
114+
var indexInclude = 2;
115+
excelWorksheet.Cells[1, 1] = @"Повторяются";
115116
foreach (var value in report.Item1)
116117
{
117-
excelWorksheet.Cells[1, indexInclude] = value;
118+
excelWorksheet.Cells[indexInclude, 1] = value;
118119
indexInclude++;
119120
}
120121

121-
var indexNotInclude = 1;
122+
var indexNotInclude = 2;
123+
excelWorksheet.Cells[1, 2] = @"Не повторяются";
122124
foreach (var value in report.Item2)
123125
{
124-
excelWorksheet.Cells[2, indexNotInclude] = value;
126+
excelWorksheet.Cells[indexNotInclude, 2] = value;
125127
indexNotInclude++;
126128
}
127129
}

Excel Differ/Form1.resx

Lines changed: 1133 additions & 0 deletions
Large diffs are not rendered by default.

Excel Differ/Icons/logo.ico

66.1 KB
Binary file not shown.

Excel Differ/Properties/Resources.Designer.cs

Lines changed: 30 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Excel Differ/Properties/Settings.Designer.cs

Lines changed: 13 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)