개정판 401a87f8
kcom 호출 가능한 applicaion 추가
Change-Id: I40d5852be36504b4339fcb445df12a156e928d71
KCOM.sln | ||
---|---|---|
78 | 78 |
EndProject |
79 | 79 |
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "MarkusWixSetup", "MarkusWixSetup\MarkusWixSetup.wixproj", "{BE26F656-74B0-4594-ACDB-5754F75859DB}" |
80 | 80 |
EndProject |
81 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KcomStart", "KcomStart\KcomStart.csproj", "{7FE93B54-E4CA-49BE-B693-FB825820BCAC}" |
|
82 |
EndProject |
|
81 | 83 |
Global |
82 | 84 |
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
83 | 85 |
Debug_CadExport|Any CPU = Debug_CadExport|Any CPU |
... | ... | |
942 | 944 |
{BE26F656-74B0-4594-ACDB-5754F75859DB}.Release|x64.ActiveCfg = Release|x86 |
943 | 945 |
{BE26F656-74B0-4594-ACDB-5754F75859DB}.Release|x86.ActiveCfg = Release|x86 |
944 | 946 |
{BE26F656-74B0-4594-ACDB-5754F75859DB}.Release|x86.Build.0 = Release|x86 |
947 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_CadExport|Any CPU.ActiveCfg = Debug|Any CPU |
|
948 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_CadExport|Any CPU.Build.0 = Debug|Any CPU |
|
949 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_CadExport|x64.ActiveCfg = Debug|Any CPU |
|
950 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_CadExport|x64.Build.0 = Debug|Any CPU |
|
951 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_CadExport|x86.ActiveCfg = Debug|Any CPU |
|
952 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_CadExport|x86.Build.0 = Debug|Any CPU |
|
953 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_DevDoftech|Any CPU.ActiveCfg = Debug|Any CPU |
|
954 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_DevDoftech|Any CPU.Build.0 = Debug|Any CPU |
|
955 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_DevDoftech|x64.ActiveCfg = Debug|Any CPU |
|
956 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_DevDoftech|x64.Build.0 = Debug|Any CPU |
|
957 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_DevDoftech|x86.ActiveCfg = Debug|Any CPU |
|
958 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_DevDoftech|x86.Build.0 = Debug|Any CPU |
|
959 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_HyoSung|Any CPU.ActiveCfg = Debug|Any CPU |
|
960 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_HyoSung|Any CPU.Build.0 = Debug|Any CPU |
|
961 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_HyoSung|x64.ActiveCfg = Debug|Any CPU |
|
962 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_HyoSung|x64.Build.0 = Debug|Any CPU |
|
963 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_HyoSung|x86.ActiveCfg = Debug|Any CPU |
|
964 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_HyoSung|x86.Build.0 = Debug|Any CPU |
|
965 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_SNI|Any CPU.ActiveCfg = Debug|Any CPU |
|
966 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_SNI|Any CPU.Build.0 = Debug|Any CPU |
|
967 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_SNI|x64.ActiveCfg = Debug|Any CPU |
|
968 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_SNI|x64.Build.0 = Debug|Any CPU |
|
969 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_SNI|x86.ActiveCfg = Debug|Any CPU |
|
970 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug_SNI|x86.Build.0 = Debug|Any CPU |
|
971 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|
972 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|
973 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug|x64.ActiveCfg = Debug|Any CPU |
|
974 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug|x64.Build.0 = Debug|Any CPU |
|
975 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug|x86.ActiveCfg = Debug|Any CPU |
|
976 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Debug|x86.Build.0 = Debug|Any CPU |
|
977 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_Hyosung|Any CPU.ActiveCfg = Release|Any CPU |
|
978 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_Hyosung|Any CPU.Build.0 = Release|Any CPU |
|
979 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_Hyosung|x64.ActiveCfg = Release|Any CPU |
|
980 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_Hyosung|x64.Build.0 = Release|Any CPU |
|
981 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_Hyosung|x86.ActiveCfg = Release|Any CPU |
|
982 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_Hyosung|x86.Build.0 = Release|Any CPU |
|
983 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_PEMSS|Any CPU.ActiveCfg = Release|Any CPU |
|
984 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_PEMSS|Any CPU.Build.0 = Release|Any CPU |
|
985 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_PEMSS|x64.ActiveCfg = Release|Any CPU |
|
986 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_PEMSS|x64.Build.0 = Release|Any CPU |
|
987 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_PEMSS|x86.ActiveCfg = Release|Any CPU |
|
988 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release_PEMSS|x86.Build.0 = Release|Any CPU |
|
989 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|
990 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release|Any CPU.Build.0 = Release|Any CPU |
|
991 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release|x64.ActiveCfg = Release|Any CPU |
|
992 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release|x64.Build.0 = Release|Any CPU |
|
993 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release|x86.ActiveCfg = Release|Any CPU |
|
994 |
{7FE93B54-E4CA-49BE-B693-FB825820BCAC}.Release|x86.Build.0 = Release|Any CPU |
|
945 | 995 |
EndGlobalSection |
946 | 996 |
GlobalSection(SolutionProperties) = preSolution |
947 | 997 |
HideSolutionNode = FALSE |
KCOM/App.xaml.cs | ||
---|---|---|
185 | 185 |
//Mode = 0 , 1 , 2 |
186 | 186 |
}; |
187 | 187 |
ParameterMode = true; |
188 |
} |
|
188 |
}
|
|
189 | 189 |
else |
190 | 190 |
{ |
191 | 191 |
string[] strArg = Environment.GetCommandLineArgs(); |
KCOM/Controls/SearchPanel.xaml.cs | ||
---|---|---|
36 | 36 |
string RegistrationKey = "193B-FD48-42F4-68E6-2D35-4C94-D07"; |
37 | 37 |
string RegistrationName = "license@doftech.co.kr"; |
38 | 38 |
Bytescout.PDFExtractor.TextExtractor extractor; |
39 |
Bytescout.PDFExtractor.OCRAnalyzer ocrAnalyzer; |
|
39 |
//Bytescout.PDFExtractor.OCRAnalyzer ocrAnalyzer;
|
|
40 | 40 |
private BackgroundWorker worker = new BackgroundWorker(); |
41 | 41 |
private bool IsCancelWork = false; |
42 | 42 |
|
... | ... | |
104 | 104 |
})); |
105 | 105 |
|
106 | 106 |
extractor.LoadDocumentFromFile(Common.ViewerDataModel.Instance.searchPDF.FullName); |
107 |
extractor.RegexSearch = true; |
|
108 |
|
|
107 | 109 |
//ocrAnalyzer.LoadDocumentFromFile(Common.ViewerDataModel.Instance.searchPDF.FullName); |
108 | 110 |
|
109 | 111 |
if (pageoption) |
... | ... | |
168 | 170 |
try |
169 | 171 |
{ |
170 | 172 |
extractor = new Bytescout.PDFExtractor.TextExtractor(RegistrationName, RegistrationKey); |
171 |
ocrAnalyzer = new Bytescout.PDFExtractor.OCRAnalyzer(RegistrationName, RegistrationKey); |
|
172 |
extractor.OCRMode = Bytescout.PDFExtractor.OCRMode.Auto;
|
|
173 |
extractor.OCRLanguage = "eng"; |
|
174 |
extractor.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata"); |
|
173 |
//ocrAnalyzer = new Bytescout.PDFExtractor.OCRAnalyzer(RegistrationName, RegistrationKey);
|
|
174 |
extractor.OCRMode = Bytescout.PDFExtractor.OCRMode.Off;
|
|
175 |
//extractor.OCRLanguage = "eng";
|
|
176 |
//extractor.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata");
|
|
175 | 177 |
|
176 | 178 |
extractor.OCRResolution = 300; |
177 | 179 |
|
178 |
ocrAnalyzer.OCRLanguage = "eng"; |
|
179 |
ocrAnalyzer.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata"); |
|
180 |
//ocrAnalyzer.OCRLanguage = "eng";
|
|
181 |
//ocrAnalyzer.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata");
|
|
180 | 182 |
|
181 | 183 |
} |
182 | 184 |
catch (Exception ex) |
... | ... | |
241 | 243 |
{ |
242 | 244 |
border_Overlap.Visibility = Visibility.Collapsed; |
243 | 245 |
Common.ViewerDataModel.Instance.searchPDF = new System.IO.FileInfo(FileFullPath); |
246 |
//OcrAnalyzer(); |
|
247 |
|
|
244 | 248 |
tbSearch.Focus(); |
245 | 249 |
} |
246 | 250 |
|
251 |
//private void OcrAnalyzer() |
|
252 |
//{ |
|
253 |
// System.Drawing.RectangleF rectangle = System.Drawing.RectangleF.Empty; |
|
254 |
|
|
255 |
// // Display analysis progress |
|
256 |
// ocrAnalyzer.ProgressChanged += (object sender, string message, double progress, ref bool cancel)=> |
|
257 |
// { |
|
258 |
// System.Diagnostics.Debug.WriteLine(message); |
|
259 |
// }; |
|
260 |
|
|
261 |
// // Load document to OCRAnalyzer |
|
262 |
// ocrAnalyzer.LoadDocumentFromFile(Common.ViewerDataModel.Instance.searchPDF.FullName); |
|
263 |
|
|
264 |
// // Set page area for analysis (optional) |
|
265 |
// ocrAnalyzer.SetExtractionArea(rectangle); |
|
266 |
|
|
267 |
// // Perform analysis and get results |
|
268 |
// Bytescout.PDFExtractor.OCRAnalysisResults analysisResults = ocrAnalyzer.AnalyzeByOCRConfidence(0); |
|
269 |
|
|
270 |
// // Now extract the text using detected OCR parameters |
|
271 |
|
|
272 |
// string outputDocument = @".\result.txt"; |
|
273 |
|
|
274 |
// // Create TextExtractor instance |
|
275 |
|
|
276 |
// // Load document to TextExtractor |
|
277 |
// extractor.LoadDocumentFromFile(Common.ViewerDataModel.Instance.searchPDF.FullName); |
|
278 |
|
|
279 |
// // Setup TextExtractor |
|
280 |
// extractor.OCRMode = Bytescout.PDFExtractor.OCRMode.TextFromImagesAndVectorsAndFonts; |
|
281 |
// extractor.OCRLanguageDataFolder = ocrAnalyzer.OCRLanguageDataFolder; |
|
282 |
// extractor.OCRLanguage = ocrAnalyzer.OCRLanguage; |
|
283 |
|
|
284 |
// // Apply analysys results to TextExtractor instance |
|
285 |
// ocrAnalyzer.ApplyResults(analysisResults, extractor); |
|
286 |
|
|
287 |
// // Set extraction area (optional) |
|
288 |
// extractor.SetExtractionArea(rectangle); |
|
289 |
|
|
290 |
// // Save extracted text to file |
|
291 |
// extractor.SaveTextToFile(outputDocument); |
|
292 |
|
|
293 |
//} |
|
294 |
|
|
247 | 295 |
private void Client_DownloadProgressChanged(object sender, System.Net.DownloadProgressChangedEventArgs e) |
248 | 296 |
{ |
249 | 297 |
tlDonwloadState.Text = "문서를 다운로드 중입니다 : " + e.ProgressPercentage; |
KcomStart/App.config | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8" ?> |
|
2 |
<configuration> |
|
3 |
<startup> |
|
4 |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> |
|
5 |
</startup> |
|
6 |
</configuration> |
KcomStart/App.xaml | ||
---|---|---|
1 |
<Application x:Class="KcomStart.App" |
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
4 |
xmlns:local="clr-namespace:KcomStart" |
|
5 |
StartupUri="MainWindow.xaml"> |
|
6 |
<Application.Resources> |
|
7 |
|
|
8 |
</Application.Resources> |
|
9 |
</Application> |
KcomStart/App.xaml.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Configuration; |
|
4 |
using System.Data; |
|
5 |
using System.Linq; |
|
6 |
using System.Threading.Tasks; |
|
7 |
using System.Windows; |
|
8 |
|
|
9 |
namespace KcomStart |
|
10 |
{ |
|
11 |
/// <summary> |
|
12 |
/// App.xaml에 대한 상호 작용 논리 |
|
13 |
/// </summary> |
|
14 |
public partial class App : Application |
|
15 |
{ |
|
16 |
} |
|
17 |
} |
KcomStart/KcomStart.csproj | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
3 |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
|
4 |
<PropertyGroup> |
|
5 |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|
6 |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|
7 |
<ProjectGuid>{7FE93B54-E4CA-49BE-B693-FB825820BCAC}</ProjectGuid> |
|
8 |
<OutputType>WinExe</OutputType> |
|
9 |
<RootNamespace>KcomStart</RootNamespace> |
|
10 |
<AssemblyName>KcomStart</AssemblyName> |
|
11 |
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> |
|
12 |
<FileAlignment>512</FileAlignment> |
|
13 |
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
|
14 |
<WarningLevel>4</WarningLevel> |
|
15 |
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
|
16 |
<Deterministic>true</Deterministic> |
|
17 |
</PropertyGroup> |
|
18 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|
19 |
<PlatformTarget>AnyCPU</PlatformTarget> |
|
20 |
<DebugSymbols>true</DebugSymbols> |
|
21 |
<DebugType>full</DebugType> |
|
22 |
<Optimize>false</Optimize> |
|
23 |
<OutputPath>bin\Debug\</OutputPath> |
|
24 |
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|
25 |
<ErrorReport>prompt</ErrorReport> |
|
26 |
<WarningLevel>4</WarningLevel> |
|
27 |
</PropertyGroup> |
|
28 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|
29 |
<PlatformTarget>AnyCPU</PlatformTarget> |
|
30 |
<DebugType>pdbonly</DebugType> |
|
31 |
<Optimize>true</Optimize> |
|
32 |
<OutputPath>bin\Release\</OutputPath> |
|
33 |
<DefineConstants>TRACE</DefineConstants> |
|
34 |
<ErrorReport>prompt</ErrorReport> |
|
35 |
<WarningLevel>4</WarningLevel> |
|
36 |
</PropertyGroup> |
|
37 |
<ItemGroup> |
|
38 |
<Reference Include="System" /> |
|
39 |
<Reference Include="System.Data" /> |
|
40 |
<Reference Include="System.Xml" /> |
|
41 |
<Reference Include="Microsoft.CSharp" /> |
|
42 |
<Reference Include="System.Core" /> |
|
43 |
<Reference Include="System.Xml.Linq" /> |
|
44 |
<Reference Include="System.Data.DataSetExtensions" /> |
|
45 |
<Reference Include="System.Net.Http" /> |
|
46 |
<Reference Include="System.Xaml"> |
|
47 |
<RequiredTargetFramework>4.0</RequiredTargetFramework> |
|
48 |
</Reference> |
|
49 |
<Reference Include="WindowsBase" /> |
|
50 |
<Reference Include="PresentationCore" /> |
|
51 |
<Reference Include="PresentationFramework" /> |
|
52 |
</ItemGroup> |
|
53 |
<ItemGroup> |
|
54 |
<ApplicationDefinition Include="App.xaml"> |
|
55 |
<Generator>MSBuild:Compile</Generator> |
|
56 |
<SubType>Designer</SubType> |
|
57 |
</ApplicationDefinition> |
|
58 |
<Page Include="MainWindow.xaml"> |
|
59 |
<Generator>MSBuild:Compile</Generator> |
|
60 |
<SubType>Designer</SubType> |
|
61 |
</Page> |
|
62 |
<Compile Include="App.xaml.cs"> |
|
63 |
<DependentUpon>App.xaml</DependentUpon> |
|
64 |
<SubType>Code</SubType> |
|
65 |
</Compile> |
|
66 |
<Compile Include="MainWindow.xaml.cs"> |
|
67 |
<DependentUpon>MainWindow.xaml</DependentUpon> |
|
68 |
<SubType>Code</SubType> |
|
69 |
</Compile> |
|
70 |
</ItemGroup> |
|
71 |
<ItemGroup> |
|
72 |
<Compile Include="Properties\AssemblyInfo.cs"> |
|
73 |
<SubType>Code</SubType> |
|
74 |
</Compile> |
|
75 |
<Compile Include="Properties\Resources.Designer.cs"> |
|
76 |
<AutoGen>True</AutoGen> |
|
77 |
<DesignTime>True</DesignTime> |
|
78 |
<DependentUpon>Resources.resx</DependentUpon> |
|
79 |
</Compile> |
|
80 |
<Compile Include="Properties\Settings.Designer.cs"> |
|
81 |
<AutoGen>True</AutoGen> |
|
82 |
<DependentUpon>Settings.settings</DependentUpon> |
|
83 |
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
|
84 |
</Compile> |
|
85 |
<EmbeddedResource Include="Properties\Resources.resx"> |
|
86 |
<Generator>ResXFileCodeGenerator</Generator> |
|
87 |
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
|
88 |
</EmbeddedResource> |
|
89 |
<None Include="Properties\Settings.settings"> |
|
90 |
<Generator>SettingsSingleFileGenerator</Generator> |
|
91 |
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
|
92 |
</None> |
|
93 |
</ItemGroup> |
|
94 |
<ItemGroup> |
|
95 |
<None Include="App.config" /> |
|
96 |
</ItemGroup> |
|
97 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|
98 |
</Project> |
KcomStart/MainWindow.xaml | ||
---|---|---|
1 |
<Window x:Class="KcomStart.MainWindow" |
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
6 |
xmlns:local="clr-namespace:KcomStart" |
|
7 |
mc:Ignorable="d" |
|
8 |
Title="MainWindow" Height="450" Width="800"> |
|
9 |
<Grid> |
|
10 |
</Grid> |
|
11 |
</Window> |
KcomStart/MainWindow.xaml.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
using System.Windows; |
|
7 |
using System.Windows.Controls; |
|
8 |
using System.Windows.Data; |
|
9 |
using System.Windows.Documents; |
|
10 |
using System.Windows.Input; |
|
11 |
using System.Windows.Media; |
|
12 |
using System.Windows.Media.Imaging; |
|
13 |
using System.Windows.Navigation; |
|
14 |
using System.Windows.Shapes; |
|
15 |
|
|
16 |
namespace KcomStart |
|
17 |
{ |
|
18 |
/// <summary> |
|
19 |
/// MainWindow.xaml에 대한 상호 작용 논리 |
|
20 |
/// </summary> |
|
21 |
public partial class MainWindow : Window |
|
22 |
{ |
|
23 |
public MainWindow() |
|
24 |
{ |
|
25 |
InitializeComponent(); |
|
26 |
} |
|
27 |
} |
|
28 |
} |
KcomStart/Properties/AssemblyInfo.cs | ||
---|---|---|
1 |
using System.Reflection; |
|
2 |
using System.Resources; |
|
3 |
using System.Runtime.CompilerServices; |
|
4 |
using System.Runtime.InteropServices; |
|
5 |
using System.Windows; |
|
6 |
|
|
7 |
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 |
|
8 |
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 |
|
9 |
// 이러한 특성 값을 변경하세요. |
|
10 |
[assembly: AssemblyTitle("KcomStart")] |
|
11 |
[assembly: AssemblyDescription("")] |
|
12 |
[assembly: AssemblyConfiguration("")] |
|
13 |
[assembly: AssemblyCompany("")] |
|
14 |
[assembly: AssemblyProduct("KcomStart")] |
|
15 |
[assembly: AssemblyCopyright("Copyright © 2020")] |
|
16 |
[assembly: AssemblyTrademark("")] |
|
17 |
[assembly: AssemblyCulture("")] |
|
18 |
|
|
19 |
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 |
|
20 |
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 |
|
21 |
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. |
|
22 |
[assembly: ComVisible(false)] |
|
23 |
|
|
24 |
//지역화 가능 응용 프로그램 빌드를 시작하려면 다음을 설정하세요. |
|
25 |
//.csproj 파일에서 <PropertyGroup> 내에 <UICulture>CultureYouAreCodingWith</UICulture>를 |
|
26 |
//설정하십시오. 예를 들어 소스 파일에서 영어(미국)를 |
|
27 |
//사용하는 경우 <UICulture>를 en-US로 설정합니다. 그런 다음 아래 |
|
28 |
//NeutralResourceLanguage 특성의 주석 처리를 제거합니다. 아래 줄의 "en-US"를 업데이트하여 |
|
29 |
//프로젝트 파일의 UICulture 설정과 일치시킵니다. |
|
30 |
|
|
31 |
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] |
|
32 |
|
|
33 |
|
|
34 |
[assembly: ThemeInfo( |
|
35 |
ResourceDictionaryLocation.None, //테마별 리소스 사전의 위치 |
|
36 |
//(페이지 또는 응용 프로그램 리소스 사진에 |
|
37 |
// 리소스가 없는 경우에 사용됨) |
|
38 |
ResourceDictionaryLocation.SourceAssembly //제네릭 리소스 사전의 위치 |
|
39 |
//(페이지 또는 응용 프로그램 리소스 사진에 |
|
40 |
// 리소스가 없는 경우에 사용됨) |
|
41 |
)] |
|
42 |
|
|
43 |
|
|
44 |
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. |
|
45 |
// |
|
46 |
// 주 버전 |
|
47 |
// 부 버전 |
|
48 |
// 빌드 번호 |
|
49 |
// 수정 버전 |
|
50 |
// |
|
51 |
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 |
|
52 |
// 지정되도록 할 수 있습니다. |
|
53 |
// [assembly: AssemblyVersion("1.0.*")] |
|
54 |
[assembly: AssemblyVersion("1.0.0.0")] |
|
55 |
[assembly: AssemblyFileVersion("1.0.0.0")] |
KcomStart/Properties/Resources.Designer.cs | ||
---|---|---|
1 |
//------------------------------------------------------------------------------ |
|
2 |
// <auto-generated> |
|
3 |
// 이 코드는 도구를 사용하여 생성되었습니다. |
|
4 |
// 런타임 버전:4.0.30319.42000 |
|
5 |
// |
|
6 |
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 |
|
7 |
// 이러한 변경 내용이 손실됩니다. |
|
8 |
// </auto-generated> |
|
9 |
//------------------------------------------------------------------------------ |
|
10 |
|
|
11 |
namespace KcomStart.Properties |
|
12 |
{ |
|
13 |
|
|
14 |
|
|
15 |
/// <summary> |
|
16 |
/// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. |
|
17 |
/// </summary> |
|
18 |
// 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder |
|
19 |
// 클래스에서 자동으로 생성되었습니다. |
|
20 |
// 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 |
|
21 |
// ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. |
|
22 |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] |
|
23 |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
24 |
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
25 |
internal class Resources |
|
26 |
{ |
|
27 |
|
|
28 |
private static global::System.Resources.ResourceManager resourceMan; |
|
29 |
|
|
30 |
private static global::System.Globalization.CultureInfo resourceCulture; |
|
31 |
|
|
32 |
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
|
33 |
internal Resources() |
|
34 |
{ |
|
35 |
} |
|
36 |
|
|
37 |
/// <summary> |
|
38 |
/// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. |
|
39 |
/// </summary> |
|
40 |
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
|
41 |
internal static global::System.Resources.ResourceManager ResourceManager |
|
42 |
{ |
|
43 |
get |
|
44 |
{ |
|
45 |
if ((resourceMan == null)) |
|
46 |
{ |
|
47 |
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("KcomStart.Properties.Resources", typeof(Resources).Assembly); |
|
48 |
resourceMan = temp; |
|
49 |
} |
|
50 |
return resourceMan; |
|
51 |
} |
|
52 |
} |
|
53 |
|
|
54 |
/// <summary> |
|
55 |
/// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 |
|
56 |
/// 재정의합니다. |
|
57 |
/// </summary> |
|
58 |
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
|
59 |
internal static global::System.Globalization.CultureInfo Culture |
|
60 |
{ |
|
61 |
get |
|
62 |
{ |
|
63 |
return resourceCulture; |
|
64 |
} |
|
65 |
set |
|
66 |
{ |
|
67 |
resourceCulture = value; |
|
68 |
} |
|
69 |
} |
|
70 |
} |
|
71 |
} |
KcomStart/Properties/Resources.resx | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<root> |
|
3 |
<!-- |
|
4 |
Microsoft ResX Schema |
|
5 |
|
|
6 |
Version 2.0 |
|
7 |
|
|
8 |
The primary goals of this format is to allow a simple XML format |
|
9 |
that is mostly human readable. The generation and parsing of the |
|
10 |
various data types are done through the TypeConverter classes |
|
11 |
associated with the data types. |
|
12 |
|
|
13 |
Example: |
|
14 |
|
|
15 |
... ado.net/XML headers & schema ... |
|
16 |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|
17 |
<resheader name="version">2.0</resheader> |
|
18 |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|
19 |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|
20 |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|
21 |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|
22 |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|
23 |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|
24 |
</data> |
|
25 |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
26 |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|
27 |
<comment>This is a comment</comment> |
|
28 |
</data> |
|
29 |
|
|
30 |
There are any number of "resheader" rows that contain simple |
|
31 |
name/value pairs. |
|
32 |
|
|
33 |
Each data row contains a name, and value. The row also contains a |
|
34 |
type or mimetype. Type corresponds to a .NET class that support |
|
35 |
text/value conversion through the TypeConverter architecture. |
|
36 |
Classes that don't support this are serialized and stored with the |
|
37 |
mimetype set. |
|
38 |
|
|
39 |
The mimetype is used for serialized objects, and tells the |
|
40 |
ResXResourceReader how to depersist the object. This is currently not |
|
41 |
extensible. For a given mimetype the value must be set accordingly: |
|
42 |
|
|
43 |
Note - application/x-microsoft.net.object.binary.base64 is the format |
|
44 |
that the ResXResourceWriter will generate, however the reader can |
|
45 |
read any of the formats listed below. |
|
46 |
|
|
47 |
mimetype: application/x-microsoft.net.object.binary.base64 |
|
48 |
value : The object must be serialized with |
|
49 |
: System.Serialization.Formatters.Binary.BinaryFormatter |
|
50 |
: and then encoded with base64 encoding. |
|
51 |
|
|
52 |
mimetype: application/x-microsoft.net.object.soap.base64 |
|
53 |
value : The object must be serialized with |
|
54 |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|
55 |
: and then encoded with base64 encoding. |
|
56 |
|
|
57 |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|
58 |
value : The object must be serialized into a byte array |
|
59 |
: using a System.ComponentModel.TypeConverter |
|
60 |
: and then encoded with base64 encoding. |
|
61 |
--> |
|
62 |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|
63 |
<xsd:element name="root" msdata:IsDataSet="true"> |
|
64 |
<xsd:complexType> |
|
65 |
<xsd:choice maxOccurs="unbounded"> |
|
66 |
<xsd:element name="metadata"> |
|
67 |
<xsd:complexType> |
|
68 |
<xsd:sequence> |
|
69 |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|
70 |
</xsd:sequence> |
|
71 |
<xsd:attribute name="name" type="xsd:string" /> |
|
72 |
<xsd:attribute name="type" type="xsd:string" /> |
|
73 |
<xsd:attribute name="mimetype" type="xsd:string" /> |
|
74 |
</xsd:complexType> |
|
75 |
</xsd:element> |
|
76 |
<xsd:element name="assembly"> |
|
77 |
<xsd:complexType> |
|
78 |
<xsd:attribute name="alias" type="xsd:string" /> |
|
79 |
<xsd:attribute name="name" type="xsd:string" /> |
|
80 |
</xsd:complexType> |
|
81 |
</xsd:element> |
|
82 |
<xsd:element name="data"> |
|
83 |
<xsd:complexType> |
|
84 |
<xsd:sequence> |
|
85 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
86 |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|
87 |
</xsd:sequence> |
|
88 |
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
|
89 |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|
90 |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|
91 |
</xsd:complexType> |
|
92 |
</xsd:element> |
|
93 |
<xsd:element name="resheader"> |
|
94 |
<xsd:complexType> |
|
95 |
<xsd:sequence> |
|
96 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
97 |
</xsd:sequence> |
|
98 |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|
99 |
</xsd:complexType> |
|
100 |
</xsd:element> |
|
101 |
</xsd:choice> |
|
102 |
</xsd:complexType> |
|
103 |
</xsd:element> |
|
104 |
</xsd:schema> |
|
105 |
<resheader name="resmimetype"> |
|
106 |
<value>text/microsoft-resx</value> |
|
107 |
</resheader> |
|
108 |
<resheader name="version"> |
|
109 |
<value>2.0</value> |
|
110 |
</resheader> |
|
111 |
<resheader name="reader"> |
|
112 |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
113 |
</resheader> |
|
114 |
<resheader name="writer"> |
|
115 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
116 |
</resheader> |
|
117 |
</root> |
KcomStart/Properties/Settings.Designer.cs | ||
---|---|---|
1 |
//------------------------------------------------------------------------------ |
|
2 |
// <auto-generated> |
|
3 |
// This code was generated by a tool. |
|
4 |
// Runtime Version:4.0.30319.42000 |
|
5 |
// |
|
6 |
// Changes to this file may cause incorrect behavior and will be lost if |
|
7 |
// the code is regenerated. |
|
8 |
// </auto-generated> |
|
9 |
//------------------------------------------------------------------------------ |
|
10 |
|
|
11 |
namespace KcomStart.Properties |
|
12 |
{ |
|
13 |
|
|
14 |
|
|
15 |
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
16 |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] |
|
17 |
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase |
|
18 |
{ |
|
19 |
|
|
20 |
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
|
21 |
|
|
22 |
public static Settings Default |
|
23 |
{ |
|
24 |
get |
|
25 |
{ |
|
26 |
return defaultInstance; |
|
27 |
} |
|
28 |
} |
|
29 |
} |
|
30 |
} |
KcomStart/Properties/Settings.settings | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)"> |
|
3 |
<Profiles> |
|
4 |
<Profile Name="(Default)" /> |
|
5 |
</Profiles> |
|
6 |
<Settings /> |
|
7 |
</SettingsFile> |
내보내기 Unified diff