Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbamboo-jp authored Dec 19, 2021
0 parents commit 522233f
Show file tree
Hide file tree
Showing 75 changed files with 6,155 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Cloud OCR Snip/Cloud OCR Snip.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31808.319
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cloud OCR Snip", "Cloud OCR Snip\Cloud OCR Snip.csproj", "{512ECA59-7812-402A-9E53-5966D7D679E7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{512ECA59-7812-402A-9E53-5966D7D679E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{512ECA59-7812-402A-9E53-5966D7D679E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{512ECA59-7812-402A-9E53-5966D7D679E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{512ECA59-7812-402A-9E53-5966D7D679E7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6723D190-7A25-48E0-B191-2329445167E2}
EndGlobalSection
EndGlobal
9 changes: 9 additions & 0 deletions Cloud OCR Snip/Cloud OCR Snip/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="Cloud_OCR_Snip.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Cloud_OCR_Snip"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
36 changes: 36 additions & 0 deletions Cloud OCR Snip/Cloud OCR Snip/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;

namespace Cloud_OCR_Snip
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
// 言語データを読み込む
Functions.LoadLanguageData();

// [多重起動チェック]
// ミューテックスを作成する
Assembly executing_assembly = Assembly.GetExecutingAssembly();
var mutex = new Mutex(false, executing_assembly.GetName().Name);
// ミューテックスの所有権を要求する
if (!mutex.WaitOne(0, false))
{
// 既に同じプログラムが起動している場合にアプリケーションを終了する
MessageBox.Show((string)FindResource("other/multiple_startup_error_message"), (string)FindResource("other/multiple_startup_error_title") + " - " + executing_assembly.GetName().Name);
Environment.Exit(0);
}
}
}
}
10 changes: 10 additions & 0 deletions Cloud OCR Snip/Cloud OCR Snip/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
96 changes: 96 additions & 0 deletions Cloud OCR Snip/Cloud OCR Snip/Cloud OCR Snip.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<RootNamespace>Cloud_OCR_Snip</RootNamespace>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<DebugType>none</DebugType>
<UseWindowsForms>True</UseWindowsForms>
<Copyright>Copyright © 2021 Takuma Otake</Copyright>
<ApplicationIcon>Icons/BlackIcon.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
<None Remove="Icons\BlackIcon.ico" />
<None Remove="Icons\WhiteIcon.ico" />
<None Remove="TranscriptionServices\TranscriptionServiceInitialSettingGuidePageImages\Image1.png" />
<None Remove="TranscriptionServices\TranscriptionServiceInitialSettingGuidePageImages\Image2.png" />
<None Remove="TranscriptionServices\TranscriptionServiceInitialSettingGuidePageImages\Image3.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Google.Cloud.Vision.V1" Version="2.4.0" />
<PackageReference Include="Markdig" Version="0.26.0" />
<PackageReference Include="Markdig.Wpf" Version="0.5.0.1" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<Resource Include="Icons\BlackIcon.ico" />
<Resource Include="Icons\WhiteIcon.ico" />
<Resource Include="TranscriptionServices\TranscriptionServiceInitialSettingGuidePageImages\Image1.png" />
<Resource Include="TranscriptionServices\TranscriptionServiceInitialSettingGuidePageImages\Image2.png" />
<Resource Include="TranscriptionServices\TranscriptionServiceInitialSettingGuidePageImages\Image3.png" />
</ItemGroup>

<ItemGroup>
<Compile Update="ImportExport\ExportPages\Export_Page4.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="ImportExport\ExportPages\Export_Page3.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="ImportExport\ExportPages\Export_Page2.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="ImportExport\ExportPages\Export_Page1.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="ImportExport\ImportPages\Import_Page3.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="ImportExport\ImportPages\Import_Page2.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="ImportExport\ImportPages\Import_Page1.xaml.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>

<ItemGroup>
<Page Update="ImportExport\ExportPages\Export_Page4.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
<SubType>Designer</SubType>
</Page>
<Page Update="ImportExport\ExportPages\Export_Page3.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
<SubType>Designer</SubType>
</Page>
<Page Update="ImportExport\ExportPages\Export_Page2.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
<SubType>Designer</SubType>
</Page>
<Page Update="ImportExport\ExportPages\Export_Page1.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
<SubType>Designer</SubType>
</Page>
<Page Update="ImportExport\ImportPages\Import_Page4.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
</Page>
<Page Update="ImportExport\ImportPages\Import_Page3.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
<SubType>Designer</SubType>
</Page>
<Page Update="ImportExport\ImportPages\Import_Page2.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
<SubType>Designer</SubType>
</Page>
<Page Update="ImportExport\ImportPages\Import_Page1.xaml">
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
<SubType>Designer</SubType>
</Page>
</ItemGroup>

</Project>
Loading

0 comments on commit 522233f

Please sign in to comment.