.NetFw4のバージョン
This commit is contained in:
commit
ebdfc31e65
63
.gitattributes
vendored
Normal file
63
.gitattributes
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
###############################################################################
|
||||
# Set default behavior to automatically normalize line endings.
|
||||
###############################################################################
|
||||
* text=auto
|
||||
|
||||
###############################################################################
|
||||
# Set default behavior for command prompt diff.
|
||||
#
|
||||
# This is need for earlier builds of msysgit that does not have it on by
|
||||
# default for csharp files.
|
||||
# Note: This is only used by command line
|
||||
###############################################################################
|
||||
#*.cs diff=csharp
|
||||
|
||||
###############################################################################
|
||||
# Set the merge driver for project and solution files
|
||||
#
|
||||
# Merging from the command prompt will add diff markers to the files if there
|
||||
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
||||
# the diff markers are never inserted). Diff markers may cause the following
|
||||
# file extensions to fail to load in VS. An alternative would be to treat
|
||||
# these files as binary and thus will always conflict and require user
|
||||
# intervention with every merge. To do so, just uncomment the entries below
|
||||
###############################################################################
|
||||
#*.sln merge=binary
|
||||
#*.csproj merge=binary
|
||||
#*.vbproj merge=binary
|
||||
#*.vcxproj merge=binary
|
||||
#*.vcproj merge=binary
|
||||
#*.dbproj merge=binary
|
||||
#*.fsproj merge=binary
|
||||
#*.lsproj merge=binary
|
||||
#*.wixproj merge=binary
|
||||
#*.modelproj merge=binary
|
||||
#*.sqlproj merge=binary
|
||||
#*.wwaproj merge=binary
|
||||
|
||||
###############################################################################
|
||||
# behavior for image files
|
||||
#
|
||||
# image files are treated as binary by default.
|
||||
###############################################################################
|
||||
#*.jpg binary
|
||||
#*.png binary
|
||||
#*.gif binary
|
||||
|
||||
###############################################################################
|
||||
# diff behavior for common document formats
|
||||
#
|
||||
# Convert binary document formats to text before diffing them. This feature
|
||||
# is only available from the command line. Turn it on by uncommenting the
|
||||
# entries below.
|
||||
###############################################################################
|
||||
#*.doc diff=astextplain
|
||||
#*.DOC diff=astextplain
|
||||
#*.docx diff=astextplain
|
||||
#*.DOCX diff=astextplain
|
||||
#*.dot diff=astextplain
|
||||
#*.DOT diff=astextplain
|
||||
#*.pdf diff=astextplain
|
||||
#*.PDF diff=astextplain
|
||||
#*.rtf diff=astextplain
|
||||
#*.RTF diff=astextplain
|
||||
261
.gitignore
vendored
Normal file
261
.gitignore
vendored
Normal file
@ -0,0 +1,261 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
|
||||
# Visual Studio 2015 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUNIT
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# DNX
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# JustCode is a .NET coding add-in
|
||||
.JustCode
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# TODO: Comment the next line if you want to checkin your web deploy settings
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
#*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/packages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/packages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/packages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignoreable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
node_modules/
|
||||
orleans.codegen.cs
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# CodeRush
|
||||
.cr/
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
13
MLComponentSettings.xml
Normal file
13
MLComponentSettings.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<MLComponentSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<IsLog>false</IsLog>
|
||||
<LogFolder></LogFolder>
|
||||
<IsSheetCountError>true</IsSheetCountError>
|
||||
<TaxRate></TaxRate>
|
||||
<AlternativeFont>false</AlternativeFont>
|
||||
<DesignDefaultWindowsFontName>メイリオ</DesignDefaultWindowsFontName>
|
||||
<DesignDefaultWindowsFontSize>9</DesignDefaultWindowsFontSize>
|
||||
<IsFileForwardCompatibleError>true</IsFileForwardCompatibleError>
|
||||
<IsEnableGcCollectForced>false</IsEnableGcCollectForced>
|
||||
<GcCollectForcedThreshold>0</GcCollectForcedThreshold>
|
||||
</MLComponentSettings>
|
||||
25
SoM_PrnControl.sln
Normal file
25
SoM_PrnControl.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28010.2036
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoM_PrnControl", "SoM_PrnControl\SoM_PrnControl.csproj", "{40C2B03C-3EFC-4F9E-B942-71D4F94F5A37}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{40C2B03C-3EFC-4F9E-B942-71D4F94F5A37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{40C2B03C-3EFC-4F9E-B942-71D4F94F5A37}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{40C2B03C-3EFC-4F9E-B942-71D4F94F5A37}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{40C2B03C-3EFC-4F9E-B942-71D4F94F5A37}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {0192E6C7-D5DE-4580-A09D-A3CAC411C3BC}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
148
SoM_PrnControl/AIDdefine.cs
Normal file
148
SoM_PrnControl/AIDdefine.cs
Normal file
@ -0,0 +1,148 @@
|
||||
static class AidConst
|
||||
{
|
||||
// 関数戻り値の定義 (APIの戻り値に関する定義) ======================================================================================================
|
||||
//----------------------------------------------------------------------------------------------
|
||||
// 正常応答
|
||||
public const uint NORMALEND = 0x0; // 正常応答(0以外異常)
|
||||
|
||||
//----------------------------------------------------------------------------------------------
|
||||
// 異常に関する型、分類に関する定義
|
||||
public const uint ERROR_MASK = (0x80000000); // 異常レベル : メインマスク値
|
||||
public const uint ERROR_TYPE_SYS = (ERROR_MASK | 0x10000000); // 異常レベル : AIDシステム/コンピュータ
|
||||
public const uint ERROR_TYPE_FUN = (ERROR_MASK | 0x20000000); // 異常レベル : 機能実行
|
||||
public const uint ERROR_TYPE_VAL = (ERROR_MASK | 0x30000000); // 異常レベル : パラメータ
|
||||
public const uint ERROR_TYPE_RES = (ERROR_MASK | 0x40000000); // 異常レベル : I/F間
|
||||
public const uint ERROR_TYPE_CMD = (ERROR_MASK | 0x50000000); // 異常レベル : コマンド実行結果
|
||||
public const uint ERROR_TYPE_EX = (ERROR_MASK | 0x60000000); // 異常レベル : 内部系
|
||||
public const uint ERROR_MASK_APL = (0x10000); // 異常オブジェクト : API
|
||||
public const uint ERROR_MASK_CARD = (0x20000); // 異常オブジェクト : カード
|
||||
public const uint ERROR_MASK_IFD = (0x30000); // 異常オブジェクト : IFD
|
||||
public const uint ERROR_MASK_STRM = (0x40000); // 異常オブジェクト : ストリーム(通信系)
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------------------------
|
||||
// APIオブジェクト関連異常応答値
|
||||
// システム系異系
|
||||
public const uint ERROR_APL_SYSTEM = (ERROR_MASK_APL | ERROR_TYPE_SYS | 0x1); // 判断できない想定外の異常
|
||||
public const uint ERROR_APL_RESOURCE = (ERROR_MASK_APL | ERROR_TYPE_SYS | 0x2); // リソースの有無、接続の異常
|
||||
public const uint ERROR_APL_AIDFILES = (ERROR_MASK_APL | ERROR_TYPE_SYS | 0x3); // ファイルリソースに接続できない
|
||||
// 機能実行系
|
||||
public const uint ERROR_APL_NOTYET = (ERROR_MASK_APL | ERROR_TYPE_FUN | 0x1); // APLオブジェクトが未設定
|
||||
public const uint ERROR_APL_ALREADY = (ERROR_MASK_APL | ERROR_TYPE_FUN | 0x2); // APLオブジェクトが既設定
|
||||
// APIパラメータ系
|
||||
public const uint ERROR_APL_UNSUPPORT = (ERROR_MASK_APL | ERROR_TYPE_VAL | 0x1); // 未サポート機能への要求
|
||||
public const uint ERROR_APL_INVALID_ARG = (ERROR_MASK_APL | ERROR_TYPE_VAL | 0x2); // 引数値、内容に関する異常
|
||||
public const uint ERROR_APL_BUFFER_SMALL = (ERROR_MASK_APL | ERROR_TYPE_VAL | 0x3); // 引渡されたバッファ長が短い
|
||||
|
||||
//----------------------------------------------------------------------------------------------
|
||||
// カードオブジェクト上での異常値定義
|
||||
// システム系異系
|
||||
public const uint ERROR_CARD_SYSTEM = (ERROR_MASK_CARD | ERROR_TYPE_SYS | 0x1); // 判断できない想定外の異常
|
||||
public const uint ERROR_CARD_RESOURCE = (ERROR_MASK_CARD | ERROR_TYPE_SYS | 0x2); // リソースの有無、接続の異常
|
||||
public const uint ERROR_CARD_AIDFILES = (ERROR_MASK_CARD | ERROR_TYPE_SYS | 0x3); // ファイルリソースに接続できない
|
||||
// 機能実行系
|
||||
public const uint ERROR_CARD_NOTYET = (ERROR_MASK_CARD | ERROR_TYPE_FUN | 0x1); // Cardオブジェクトが未設定
|
||||
public const uint ERROR_CARD_ALREADY = (ERROR_MASK_CARD | ERROR_TYPE_FUN | 0x2); // Cardオブジェクトが既設定
|
||||
// APIパラメータ系
|
||||
public const uint ERROR_CARD_UNSUPPORT = (ERROR_MASK_CARD | ERROR_TYPE_VAL | 0x1); // 未サポート機能への要求
|
||||
public const uint ERROR_CARD_INVALID_ARG = (ERROR_MASK_CARD | ERROR_TYPE_VAL | 0x2); // 引数値、内容に関する異常
|
||||
public const uint ERROR_CARD_BUFFER_SMALL = (ERROR_MASK_CARD | ERROR_TYPE_VAL | 0x3); // 引渡されたバッファ長が短い
|
||||
// SESSION異常
|
||||
public const uint ERROR_CARD_FINED = (ERROR_MASK_CARD | ERROR_TYPE_RES | 0x1); // カード補足が出来なかった
|
||||
public const uint ERROR_CARD_LOST = (ERROR_MASK_CARD | ERROR_TYPE_RES | 0x2); // カード通信が維持出来い
|
||||
public const uint ERROR_CARD_FRAME = (ERROR_MASK_CARD | ERROR_TYPE_RES | 0x3); // R/W-カード間通信フレームが識別出来ない
|
||||
public const uint ERROR_CARD_RECOVER = (ERROR_MASK_CARD | ERROR_TYPE_RES | 0x4); // 上位でのリカバリ可能な異常
|
||||
public const uint ERROR_CARD_TARGET = (ERROR_MASK_CARD | ERROR_TYPE_RES | 0x5); // 対象外カードへの要求
|
||||
public const uint ERROR_CARD_CANCEL = (ERROR_MASK_CARD | ERROR_TYPE_RES | 0x6); // アプリ要求にて処理を中断した
|
||||
// その他
|
||||
public const uint ERROR_CARD_AUTHENTICATE = (ERROR_MASK_CARD | ERROR_TYPE_EX | 0x8001); // AUTHENTICATE異常
|
||||
public const uint ERROR_CARD_MACRO_READ = (ERROR_MASK_CARD | ERROR_TYPE_EX | 0x8002); // マクロコマンドのリードでの異常
|
||||
|
||||
//----------------------------------------------------------------------------------------------
|
||||
// IFDオブジェクト上での異常値定義
|
||||
// システム系異系
|
||||
public const uint ERROR_IFD_SYSTEM = (ERROR_MASK_IFD | ERROR_TYPE_SYS | 0x1); // 判断できない想定外の異常
|
||||
public const uint ERROR_IFD_RESOURCE = (ERROR_MASK_IFD | ERROR_TYPE_SYS | 0x2); // リソースの有無、接続の異常
|
||||
public const uint ERROR_IFD_AIDFILES = (ERROR_MASK_IFD | ERROR_TYPE_SYS | 0x3); // ファイルリソースに接続できない
|
||||
// 機能実行系
|
||||
public const uint ERROR_IFD_NOTYET = (ERROR_MASK_IFD | ERROR_TYPE_FUN | 0x1); // IFDオブジェクトが未設定
|
||||
public const uint ERROR_IFD_ALREADY = (ERROR_MASK_IFD | ERROR_TYPE_FUN | 0x2); // IFDオブジェクトが既設定
|
||||
// APIパラメータ系
|
||||
public const uint ERROR_IFD_UNSUPPORT = (ERROR_MASK_IFD | ERROR_TYPE_VAL | 0x1); // 未サポートI/Fへの要求
|
||||
public const uint ERROR_IFD_INVALID_ARG = (ERROR_MASK_IFD | ERROR_TYPE_VAL | 0x2); // 引数値、内容に関する異常
|
||||
public const uint ERROR_IFD_BUFFER_SMALL = (ERROR_MASK_IFD | ERROR_TYPE_VAL | 0x3); // 引渡されたバッファ長が短い
|
||||
// SESSION異常
|
||||
public const uint ERROR_IFD_FRAME = (ERROR_MASK_IFD | ERROR_TYPE_RES | 0x1); // ホスト-R/W間通信フレームが識別出来ない
|
||||
public const uint ERROR_IFD_RECOVER = (ERROR_MASK_IFD | ERROR_TYPE_RES | 0x2); // 上位でのリカバリ可能な異常
|
||||
public const uint ERROR_IFD_FORMAT = (ERROR_MASK_IFD | ERROR_TYPE_RES | 0x3); // スルー通信用フォーマットが異常
|
||||
public const uint ERROR_IFD_FRAME_STRUCT = (ERROR_MASK_IFD | ERROR_TYPE_RES | 0x4); // 通信フレーム構造異常
|
||||
// コマンド実行結果の異常
|
||||
public const uint ERROR_IFD_SWMISSING = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x1); // SWが存在しない(見つからない)
|
||||
public const uint ERROR_IFD_UNDEFINED = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x2); // 未定義のSWを検出した
|
||||
public const uint ERROR_IFD_WARNING = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6200); // 警告(詳細なし)
|
||||
public const uint ERROR_IFD_CARDTIMEOUT = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x62F0); // R/W側カード通信タイムアウト
|
||||
public const uint ERROR_IFD_CARDERROR = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x62F1); // R/W側カード通信異常
|
||||
public const uint ERROR_IFD_EXECUTEERROR = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6400); // コマンドが実行出来ない
|
||||
public const uint ERROR_IFD_CMDLENERROR = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6700); // コマンド長異常
|
||||
public const uint ERROR_IFD_HARDCONDITION = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6900); // ハード的な実行条件異常
|
||||
public const uint ERROR_IFD_CMDCONDITION = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6985); // コマンド実行条件異常
|
||||
public const uint ERROR_IFD_PARAMERROR = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6A86); // パラメータ値不正
|
||||
public const uint ERROR_IFD_PARAMRANGE = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6B00); // パラメータ範囲異常
|
||||
public const uint ERROR_IFD_INSERROR = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6D00); // INS異常
|
||||
public const uint ERROR_IFD_CLAERROR = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6E00); // CLA異常
|
||||
public const uint ERROR_IFD_SELFCHECK = (ERROR_MASK_IFD | ERROR_TYPE_CMD | 0x6F00); // 自己診断異常
|
||||
// その他
|
||||
public const uint ERROR_IFD_AUTHENTICATE1 = (ERROR_MASK_IFD | ERROR_TYPE_EX | 0x8001); // AUTHENTICATE1異常
|
||||
public const uint ERROR_IFD_AUTHENTICATE2 = (ERROR_MASK_IFD | ERROR_TYPE_EX | 0x8002); // AUTHENTICATE2異常
|
||||
public const uint ERROR_IFD_SETUPAUTH = (ERROR_MASK_IFD | ERROR_TYPE_EX | 0x8003); // 認証・暗号設定異常
|
||||
public const uint WARNING_IFD_RETURN = (ERROR_MASK_IFD | ERROR_TYPE_EX | 0x8100); // 応答検査要求
|
||||
|
||||
//----------------------------------------------------------------------------------------------
|
||||
// STreamオブジェクト上での異常値定義
|
||||
// システム系異常
|
||||
public const uint ERROR_STRM_SYSTEM = (ERROR_MASK_STRM | ERROR_TYPE_SYS | 0x1); // 判断できない想定外の異常
|
||||
public const uint ERROR_STRM_RESOURCE = (ERROR_MASK_STRM | ERROR_TYPE_SYS | 0x2); // リソースの有無、接続の異常
|
||||
public const uint ERROR_STRM_AIDFILES = (ERROR_MASK_STRM | ERROR_TYPE_SYS | 0x3); // ファイルリソースに接続できない
|
||||
public const uint ERROR_STRM_DEVICE = (ERROR_MASK_STRM | ERROR_TYPE_SYS | 0x4); // デバイス内部異常
|
||||
public const uint ERROR_STRM_WIN32 = (ERROR_MASK_STRM | ERROR_TYPE_SYS | 0x7); // Win32API上での異常
|
||||
// 機能実行系
|
||||
public const uint ERROR_STRM_COLLISION = (ERROR_MASK_STRM | ERROR_TYPE_FUN | 0x1); // リソースの競合
|
||||
public const uint ERROR_STRM_NOTOPEN = (ERROR_MASK_STRM | ERROR_TYPE_FUN | 0x2); // ポート未オープン
|
||||
public const uint ERROR_STRM_ALREADYOPEN = (ERROR_MASK_STRM | ERROR_TYPE_FUN | 0x3); // ポートオープン済
|
||||
public const uint ERROR_STRM_CURBUSY = (ERROR_MASK_STRM | ERROR_TYPE_FUN | 0x4); // セッション処理中
|
||||
// APIパラメータ系
|
||||
public const uint ERROR_STRM_UNSUPPORT = (ERROR_MASK_STRM | ERROR_TYPE_VAL | 0x1); // 未サポート機能への要求
|
||||
public const uint ERROR_STRM_INVALID_ARG = (ERROR_MASK_STRM | ERROR_TYPE_VAL | 0x2); // DLL呼び出し時の引数異常
|
||||
public const uint ERROR_STRM_BUFFER_SMALL = (ERROR_MASK_STRM | ERROR_TYPE_VAL | 0x3); // 応答格納用バッファ長が短い
|
||||
// SESSION系
|
||||
public const uint ERROR_STRM_TIME_OUT = (ERROR_MASK_STRM | ERROR_TYPE_RES | 0x1); // セッションタイムアウト
|
||||
public const uint ERROR_STRM_RECEIVE = (ERROR_MASK_STRM | ERROR_TYPE_RES | 0x2); // バイナリレベルの受信異常(パリティ等)
|
||||
public const uint ERROR_STRM_SHORT_FRAME = (ERROR_MASK_STRM | ERROR_TYPE_RES | 0x3); // ショートフレーム異常
|
||||
|
||||
|
||||
|
||||
// 定数定義 ========================================================================================================================================
|
||||
// StartTransactionのtypeの戻り値
|
||||
public const uint CARDTYPE_MIF = 0x2; // Mifareカードが存在
|
||||
public const uint CARDTYPE_B = 0x3; // TypeBカードが存在
|
||||
public const uint CARDTYPE_FEL = 0x4; // FeliCaカードが存在
|
||||
public const uint CARDTYPE_A = 0x6; // TypeAカードが存在
|
||||
public const uint CARDTYPE_MORECARD = 0x80000000; // 検出したカード以外のカードが存在
|
||||
|
||||
// StartTransactionのspeedの設定値
|
||||
public const int CARDSPEED_DEFAULT = 0x0; // 初期通信速度を指定
|
||||
public const int CARDSPEED_2TIMES = 0x1; // 初期通信速度の2倍を指定
|
||||
public const int CARDSPEED_4TIMES = 0x2; // 初期通信速度の4倍を指定
|
||||
public const int CARDSPEED_8TIMES = 0x3; // 初期通信速度の8倍を指定
|
||||
public const uint CARDSPEED_MAX = 0x80000000; // 通信可能な最大通信速度を指定
|
||||
|
||||
// シリアル通信速度指定定数
|
||||
public const int DEF_9600 = 9600; // 9600bps
|
||||
public const int DEF_14400 = 14400; // 14400bps
|
||||
public const int DEF_19200 = 19200; // 19200bps
|
||||
public const int DEF_28800 = 28800; // 28800bps
|
||||
public const int DEF_38400 = 38400; // 38400bps
|
||||
public const int DEF_57600 = 57600; // 57600bps
|
||||
public const int DEF_115200 = 115200; // 115200bps
|
||||
}
|
||||
|
||||
6
SoM_PrnControl/App.config
Normal file
6
SoM_PrnControl/App.config
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
89
SoM_PrnControl/Form1.Designer.cs
generated
Normal file
89
SoM_PrnControl/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,89 @@
|
||||
namespace qk30ic
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// 必要なデザイナー変数です。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 使用中のリソースをすべてクリーンアップします。
|
||||
/// </summary>
|
||||
/// <param name="disposing">マネージド リソースを破棄する場合は true を指定し、その他の場合は false を指定します。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows フォーム デザイナーで生成されたコード
|
||||
|
||||
/// <summary>
|
||||
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を
|
||||
/// コード エディターで変更しないでください。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(414, 382);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(134, 29);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "終了";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// serialPort1
|
||||
//
|
||||
this.serialPort1.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort1_DataReceived);
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(24, 28);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersVisible = false;
|
||||
this.dataGridView1.RowHeadersWidth = 60;
|
||||
this.dataGridView1.RowTemplate.Height = 21;
|
||||
this.dataGridView1.ScrollBars = System.Windows.Forms.ScrollBars.None;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(947, 330);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(994, 450);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Name = "Form1";
|
||||
this.Text = "SoMプリンタ制御プログラム";
|
||||
this.TopMost = true;
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
||||
this.Shown += new System.EventHandler(this.Form1_Shown);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.IO.Ports.SerialPort serialPort1;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
}
|
||||
}
|
||||
|
||||
2206
SoM_PrnControl/Form1.cs
Normal file
2206
SoM_PrnControl/Form1.cs
Normal file
File diff suppressed because it is too large
Load Diff
123
SoM_PrnControl/Form1.resx
Normal file
123
SoM_PrnControl/Form1.resx
Normal file
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="serialPort1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
13
SoM_PrnControl/MLComponentSettings.xml
Normal file
13
SoM_PrnControl/MLComponentSettings.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<MLComponentSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<IsLog>false</IsLog>
|
||||
<LogFolder></LogFolder>
|
||||
<IsSheetCountError>true</IsSheetCountError>
|
||||
<TaxRate></TaxRate>
|
||||
<AlternativeFont>false</AlternativeFont>
|
||||
<DesignDefaultWindowsFontName>メイリオ</DesignDefaultWindowsFontName>
|
||||
<DesignDefaultWindowsFontSize>9</DesignDefaultWindowsFontSize>
|
||||
<IsFileForwardCompatibleError>true</IsFileForwardCompatibleError>
|
||||
<IsEnableGcCollectForced>false</IsEnableGcCollectForced>
|
||||
<GcCollectForcedThreshold>0</GcCollectForcedThreshold>
|
||||
</MLComponentSettings>
|
||||
24
SoM_PrnControl/Program.cs
Normal file
24
SoM_PrnControl/Program.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using SATO.MLComponent;
|
||||
|
||||
|
||||
namespace qk30ic
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// アプリケーションのメイン エントリ ポイントです。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
36
SoM_PrnControl/Properties/AssemblyInfo.cs
Normal file
36
SoM_PrnControl/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
|
||||
// アセンブリに関連付けられている情報を変更するには、
|
||||
// これらの属性値を変更してください。
|
||||
[assembly: AssemblyTitle("SoM_PenControl")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SoM_PenControl")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// ComVisible を false に設定すると、このアセンブリ内の型は COM コンポーネントから
|
||||
// 参照できなくなります。COM からこのアセンブリ内の型にアクセスする必要がある場合は、
|
||||
// その型の ComVisible 属性を true に設定してください。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// このプロジェクトが COM に公開される場合、次の GUID が typelib の ID になります
|
||||
[assembly: Guid("40c2b03c-3efc-4f9e-b942-71d4f94f5a37")]
|
||||
|
||||
// アセンブリのバージョン情報は次の 4 つの値で構成されています:
|
||||
//
|
||||
// メジャー バージョン
|
||||
// マイナー バージョン
|
||||
// ビルド番号
|
||||
// Revision
|
||||
//
|
||||
// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます
|
||||
// 既定値にすることができます:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
13
SoM_PrnControl/Properties/MLComponentSettings.xml
Normal file
13
SoM_PrnControl/Properties/MLComponentSettings.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<MLComponentSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<IsLog>false</IsLog>
|
||||
<LogFolder></LogFolder>
|
||||
<IsSheetCountError>true</IsSheetCountError>
|
||||
<TaxRate></TaxRate>
|
||||
<AlternativeFont>false</AlternativeFont>
|
||||
<DesignDefaultWindowsFontName>メイリオ</DesignDefaultWindowsFontName>
|
||||
<DesignDefaultWindowsFontSize>9</DesignDefaultWindowsFontSize>
|
||||
<IsFileForwardCompatibleError>true</IsFileForwardCompatibleError>
|
||||
<IsEnableGcCollectForced>false</IsEnableGcCollectForced>
|
||||
<GcCollectForcedThreshold>0</GcCollectForcedThreshold>
|
||||
</MLComponentSettings>
|
||||
63
SoM_PrnControl/Properties/Resources.Designer.cs
generated
Normal file
63
SoM_PrnControl/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// このコードはツールによって生成されました。
|
||||
// ランタイム バージョン:4.0.30319.42000
|
||||
//
|
||||
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
|
||||
// コードが再生成されるときに損失したりします。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SoM_PenControl.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。
|
||||
/// </summary>
|
||||
// このクラスは StronglyTypedResourceBuilder クラスが ResGen
|
||||
// または Visual Studio のようなツールを使用して自動生成されました。
|
||||
// メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に
|
||||
// ResGen を実行し直すか、または VS プロジェクトをビルドし直します。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// このクラスで使用されているキャッシュされた ResourceManager インスタンスを返します。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SoM_PenControl.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// すべてについて、現在のスレッドの CurrentUICulture プロパティをオーバーライドします
|
||||
/// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
SoM_PrnControl/Properties/Resources.resx
Normal file
117
SoM_PrnControl/Properties/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
26
SoM_PrnControl/Properties/Settings.Designer.cs
generated
Normal file
26
SoM_PrnControl/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// このコードはツールによって生成されました。
|
||||
// ランタイム バージョン:4.0.30319.42000
|
||||
//
|
||||
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
|
||||
// コードが再生成されるときに損失したりします。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SoM_PenControl.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
SoM_PrnControl/Properties/Settings.settings
Normal file
7
SoM_PrnControl/Properties/Settings.settings
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
135
SoM_PrnControl/SoM_PrnControl.csproj
Normal file
135
SoM_PrnControl/SoM_PrnControl.csproj
Normal file
@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{40C2B03C-3EFC-4F9E-B942-71D4F94F5A37}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>SoM_PenControl</RootNamespace>
|
||||
<AssemblyName>SoM_PenControl</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<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>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Google.Protobuf.3.5.1\lib\net45\Google.Protobuf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MLComponent, Version=5.8.4.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\ソーリン\ラベル\MLCMP-file-v5_8_4_0\MLComponent.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MLComponent.XmlSerializers, Version=5.8.4.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\ソーリン\ラベル\MLCMP-file-v5_8_4_0\MLComponent.XmlSerializers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MySql.Data, Version=8.0.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.8.0.12\lib\net452\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing.Design" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AIDdefine.cs" />
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 および x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
5
SoM_PrnControl/packages.config
Normal file
5
SoM_PrnControl/packages.config
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Google.Protobuf" version="3.5.1" targetFramework="net461" />
|
||||
<package id="MySql.Data" version="8.0.12" targetFramework="net461" />
|
||||
</packages>
|
||||
Loading…
Reference in New Issue
Block a user