Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KenPanCS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QCD
Tools
KenPanCS
Commits
bf94f167
Commit
bf94f167
authored
Nov 25, 2021
by
tsuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TIFF出力パラメータと検版パラメータの前回設定値を初期値として表示するように改良
parent
938a4ded
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
155 additions
and
22 deletions
+155
-22
App.config
Code/CSRender/CSRender/App.config
+27
-0
MainWindow.xaml.cs
Code/CSRender/CSRender/MainWindow.xaml.cs
+21
-0
Settings.Designer.cs
Code/CSRender/CSRender/Properties/Settings.Designer.cs
+85
-17
Settings.settings
Code/CSRender/CSRender/Properties/Settings.settings
+22
-5
No files found.
Code/CSRender/CSRender/App.config
View file @
bf94f167
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configuration
>
<
configSections
>
<
sectionGroup
name
=
"userSettings"
type
=
"System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<
section
name
=
"CSRender.Properties.Settings"
type
=
"System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
allowExeDefinition
=
"MachineToLocalUser"
requirePermission
=
"false"
/>
</
sectionGroup
>
</
configSections
>
<
startup
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
</
startup
>
<
userSettings
>
<
CSRender
.
Properties
.
Settings
>
<
setting
name
=
"resolutionSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
<
setting
name
=
"formatSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
<
setting
name
=
"shiftPixelSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
<
setting
name
=
"colorMarginSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
<
setting
name
=
"removePointSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
<
setting
name
=
"shadingOffSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
</
CSRender
.
Properties
.
Settings
>
</
userSettings
>
</
configuration
>
</
configuration
>
\ No newline at end of file
Code/CSRender/CSRender/MainWindow.xaml.cs
View file @
bf94f167
...
@@ -89,6 +89,14 @@ namespace CSRender
...
@@ -89,6 +89,14 @@ namespace CSRender
FilePattern
.
Add
((
new
ComboBoxSet
{
Id
=
7
,
Item
=
"BMP"
}));
FilePattern
.
Add
((
new
ComboBoxSet
{
Id
=
7
,
Item
=
"BMP"
}));
FileSelect
.
ItemsSource
=
FilePattern
;
FileSelect
.
ItemsSource
=
FilePattern
;
//デフォルトに前回の設定値を表示
ResolutionBox
.
Text
=
Properties
.
Settings
.
Default
.
resolutionSetting
;
FileSelect
.
Text
=
Properties
.
Settings
.
Default
.
formatSetting
;
PositionBox
.
Text
=
Properties
.
Settings
.
Default
.
shiftPixelSetting
;
GradationBox
.
Text
=
Properties
.
Settings
.
Default
.
colorMarginSetting
;
SmallDiffBox
.
Text
=
Properties
.
Settings
.
Default
.
removePointSetting
;
VisualBox
.
Text
=
Properties
.
Settings
.
Default
.
shadingOffSetting
;
//ドラッグ&ドロップイベントの追加
//ドラッグ&ドロップイベントの追加
targetBox
.
AddHandler
(
TextBox
.
DragOverEvent
,
new
DragEventHandler
(
textBox_PreviewDragOver
),
true
);
targetBox
.
AddHandler
(
TextBox
.
DragOverEvent
,
new
DragEventHandler
(
textBox_PreviewDragOver
),
true
);
targetBox
.
AddHandler
(
TextBox
.
DropEvent
,
new
DragEventHandler
(
TargetBox_Drop
),
true
);
targetBox
.
AddHandler
(
TextBox
.
DropEvent
,
new
DragEventHandler
(
TargetBox_Drop
),
true
);
...
@@ -185,6 +193,14 @@ namespace CSRender
...
@@ -185,6 +193,14 @@ namespace CSRender
//指定先にレポートを移動
//指定先にレポートを移動
CompareTIFF
.
moveReport
(
workBox
.
Text
,
workDir
);
CompareTIFF
.
moveReport
(
workBox
.
Text
,
workDir
);
//パラメータを次回初期値用に保存
Properties
.
Settings
.
Default
.
resolutionSetting
=
ResolutionBox
.
Text
;
Properties
.
Settings
.
Default
.
formatSetting
=
FileSelect
.
Text
;
Properties
.
Settings
.
Default
.
shiftPixelSetting
=
PositionBox
.
Text
;
Properties
.
Settings
.
Default
.
colorMarginSetting
=
GradationBox
.
Text
;
Properties
.
Settings
.
Default
.
removePointSetting
=
SmallDiffBox
.
Text
;
Properties
.
Settings
.
Default
.
shadingOffSetting
=
VisualBox
.
Text
;
Properties
.
Settings
.
Default
.
Save
();
}
}
//UIに検版結果を出力
//UIに検版結果を出力
...
@@ -254,6 +270,11 @@ namespace CSRender
...
@@ -254,6 +270,11 @@ namespace CSRender
ResultConsole
.
Text
+=
TIFFresult
;
ResultConsole
.
Text
+=
TIFFresult
;
ResultConsole
.
Text
+=
"\r\n<変換終了>\r\n"
;
ResultConsole
.
Text
+=
"\r\n<変換終了>\r\n"
;
ResultConsole
.
ScrollToEnd
();
ResultConsole
.
ScrollToEnd
();
//パラメータを次回初期値用に保存
Properties
.
Settings
.
Default
.
resolutionSetting
=
ResolutionBox
.
Text
;
Properties
.
Settings
.
Default
.
formatSetting
=
FileSelect
.
Text
;
Properties
.
Settings
.
Default
.
Save
();
}
}
}
}
...
...
Code/CSRender/CSRender/Properties/Settings.Designer.cs
View file @
bf94f167
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// <auto-generated>
// <auto-generated>
//
This code was generated by a tool.
//
このコードはツールによって生成されました。
//
Runtime Version
:4.0.30319.42000
//
ランタイム バージョン
:4.0.30319.42000
//
//
//
Changes to this file may cause incorrect behavior and will be lost if
//
このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
//
the code is regenerated.
//
コードが再生成されるときに損失したりします。
// </auto-generated>
// </auto-generated>
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
namespace
CSRender.Properties
namespace
CSRender.Properties
{
{
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"11.0.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"15.9.0.0"
)]
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
{
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
public
static
Settings
Default
public
static
Settings
Default
{
{
get
{
get
{
return
defaultInstance
;
return
defaultInstance
;
}
}
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
resolutionSetting
{
get
{
return
((
string
)(
this
[
"resolutionSetting"
]));
}
set
{
this
[
"resolutionSetting"
]
=
value
;
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
formatSetting
{
get
{
return
((
string
)(
this
[
"formatSetting"
]));
}
set
{
this
[
"formatSetting"
]
=
value
;
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
shiftPixelSetting
{
get
{
return
((
string
)(
this
[
"shiftPixelSetting"
]));
}
set
{
this
[
"shiftPixelSetting"
]
=
value
;
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
colorMarginSetting
{
get
{
return
((
string
)(
this
[
"colorMarginSetting"
]));
}
set
{
this
[
"colorMarginSetting"
]
=
value
;
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
removePointSetting
{
get
{
return
((
string
)(
this
[
"removePointSetting"
]));
}
set
{
this
[
"removePointSetting"
]
=
value
;
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
shadingOffSetting
{
get
{
return
((
string
)(
this
[
"shadingOffSetting"
]));
}
set
{
this
[
"shadingOffSetting"
]
=
value
;
}
}
}
}
}
}
Code/CSRender/CSRender/Properties/Settings.settings
View file @
bf94f167
<?xml version='1.0' encoding='utf-8'?>
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile
xmlns=
"uri:settings"
CurrentProfile=
"(Default)"
>
<SettingsFile
xmlns=
"http://schemas.microsoft.com/VisualStudio/2004/01/settings"
CurrentProfile=
"(Default)"
GeneratedClassNamespace=
"CSRender.Properties"
GeneratedClassName=
"Settings"
>
<Profiles>
<Profiles
/>
<Profile
Name=
"(Default)"
/>
<Settings>
</Profiles>
<Setting
Name=
"resolutionSetting"
Type=
"System.String"
Scope=
"User"
>
<Settings
/>
<Value
Profile=
"(Default)"
/>
</Setting>
<Setting
Name=
"formatSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
</Setting>
<Setting
Name=
"shiftPixelSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
</Setting>
<Setting
Name=
"colorMarginSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
</Setting>
<Setting
Name=
"removePointSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
</Setting>
<Setting
Name=
"shadingOffSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
</Setting>
</Settings>
</SettingsFile>
</SettingsFile>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment