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
5fae209f
Commit
5fae209f
authored
Dec 10, 2021
by
tsuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
対象フォルダとリファレンスフォルダの前回値を記憶するように改良
parent
abf4d4bb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
0 deletions
+47
-0
App.config
Code/CSRender/CSRender/App.config
+6
-0
MainWindow.xaml.cs
Code/CSRender/CSRender/MainWindow.xaml.cs
+11
-0
Settings.Designer.cs
Code/CSRender/CSRender/Properties/Settings.Designer.cs
+24
-0
Settings.settings
Code/CSRender/CSRender/Properties/Settings.settings
+6
-0
No files found.
Code/CSRender/CSRender/App.config
View file @
5fae209f
...
@@ -31,6 +31,12 @@
...
@@ -31,6 +31,12 @@
<
setting
name
=
"workSpaceSetting"
serializeAs
=
"String"
>
<
setting
name
=
"workSpaceSetting"
serializeAs
=
"String"
>
<
value
/>
<
value
/>
</
setting
>
</
setting
>
<
setting
name
=
"referenceSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
<
setting
name
=
"targetSetting"
serializeAs
=
"String"
>
<
value
/>
</
setting
>
</
CSRender
.
Properties
.
Settings
>
</
CSRender
.
Properties
.
Settings
>
</
userSettings
>
</
userSettings
>
</
configuration
>
</
configuration
>
\ No newline at end of file
Code/CSRender/CSRender/MainWindow.xaml.cs
View file @
5fae209f
...
@@ -61,6 +61,8 @@ namespace CSRender
...
@@ -61,6 +61,8 @@ namespace CSRender
SmallDiffBox
.
Value
=
Properties
.
Settings
.
Default
.
removePointSetting
;
SmallDiffBox
.
Value
=
Properties
.
Settings
.
Default
.
removePointSetting
;
VisualBox
.
Value
=
Properties
.
Settings
.
Default
.
shadingOffSetting
;
VisualBox
.
Value
=
Properties
.
Settings
.
Default
.
shadingOffSetting
;
workBox
.
Text
=
Properties
.
Settings
.
Default
.
workSpaceSetting
;
workBox
.
Text
=
Properties
.
Settings
.
Default
.
workSpaceSetting
;
targetBox
.
Text
=
Properties
.
Settings
.
Default
.
targetSetting
;
referenceBox
.
Text
=
Properties
.
Settings
.
Default
.
referenceSetting
;
//ドラッグ&ドロップイベントの追加
//ドラッグ&ドロップイベントの追加
targetBox
.
AddHandler
(
TextBox
.
DragOverEvent
,
new
DragEventHandler
(
textBox_PreviewDragOver
),
true
);
targetBox
.
AddHandler
(
TextBox
.
DragOverEvent
,
new
DragEventHandler
(
textBox_PreviewDragOver
),
true
);
...
@@ -109,6 +111,8 @@ namespace CSRender
...
@@ -109,6 +111,8 @@ namespace CSRender
"\nもう一度設定してください。"
,
"The specified file or folder does not exist"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Information
);
"\nもう一度設定してください。"
,
"The specified file or folder does not exist"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Information
);
ResultConsole
.
Text
+=
" 指定された対象ファイルあるいはフォルダを発見できませんでした\r\n"
;
ResultConsole
.
Text
+=
" 指定された対象ファイルあるいはフォルダを発見できませんでした\r\n"
;
ResultConsole
.
Text
+=
"<TIFF変換中止>\r\n"
;
ResultConsole
.
Text
+=
"<TIFF変換中止>\r\n"
;
Properties
.
Settings
.
Default
.
targetSetting
=
""
;
Properties
.
Settings
.
Default
.
Save
();
return
;
return
;
}
}
...
@@ -119,6 +123,8 @@ namespace CSRender
...
@@ -119,6 +123,8 @@ namespace CSRender
"\nもう一度設定してください。"
,
"The specified reference file or folder does not exist"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Information
);
"\nもう一度設定してください。"
,
"The specified reference file or folder does not exist"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Information
);
ResultConsole
.
Text
+=
" 指定されたリファレンスファイルあるいはフォルダを発見できませんでした\r\n"
;
ResultConsole
.
Text
+=
" 指定されたリファレンスファイルあるいはフォルダを発見できませんでした\r\n"
;
ResultConsole
.
Text
+=
"<TIFF変換中止>\r\n"
;
ResultConsole
.
Text
+=
"<TIFF変換中止>\r\n"
;
Properties
.
Settings
.
Default
.
referenceSetting
=
""
;
Properties
.
Settings
.
Default
.
Save
();
return
;
return
;
}
}
...
@@ -236,6 +242,8 @@ namespace CSRender
...
@@ -236,6 +242,8 @@ namespace CSRender
Properties
.
Settings
.
Default
.
removePointSetting
=
SmallDiffBox
.
Value
;
Properties
.
Settings
.
Default
.
removePointSetting
=
SmallDiffBox
.
Value
;
Properties
.
Settings
.
Default
.
shadingOffSetting
=
VisualBox
.
Value
;
Properties
.
Settings
.
Default
.
shadingOffSetting
=
VisualBox
.
Value
;
Properties
.
Settings
.
Default
.
workSpaceSetting
=
workBox
.
Text
;
Properties
.
Settings
.
Default
.
workSpaceSetting
=
workBox
.
Text
;
Properties
.
Settings
.
Default
.
targetSetting
=
targetBox
.
Text
;
Properties
.
Settings
.
Default
.
referenceSetting
=
referenceBox
.
Text
;
Properties
.
Settings
.
Default
.
Save
();
Properties
.
Settings
.
Default
.
Save
();
}
}
...
@@ -308,6 +316,8 @@ namespace CSRender
...
@@ -308,6 +316,8 @@ namespace CSRender
"\nもう一度TIFF出力する対象を設定してください。"
,
"The specified file or folder does not exist"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Information
);
"\nもう一度TIFF出力する対象を設定してください。"
,
"The specified file or folder does not exist"
,
MessageBoxButton
.
OK
,
MessageBoxImage
.
Information
);
ResultConsole
.
Text
+=
" 指定された対象ファイルあるいはフォルダを発見できませんでした\r\n"
;
ResultConsole
.
Text
+=
" 指定された対象ファイルあるいはフォルダを発見できませんでした\r\n"
;
ResultConsole
.
Text
+=
"<変換中止>\r\n"
;
ResultConsole
.
Text
+=
"<変換中止>\r\n"
;
Properties
.
Settings
.
Default
.
targetSetting
=
""
;
Properties
.
Settings
.
Default
.
Save
();
return
;
return
;
}
}
...
@@ -339,6 +349,7 @@ namespace CSRender
...
@@ -339,6 +349,7 @@ namespace CSRender
Properties
.
Settings
.
Default
.
resolutionSetting
=
ResolutionBox
.
Value
;
Properties
.
Settings
.
Default
.
resolutionSetting
=
ResolutionBox
.
Value
;
Properties
.
Settings
.
Default
.
formatSetting
=
FileSelect
.
Text
;
Properties
.
Settings
.
Default
.
formatSetting
=
FileSelect
.
Text
;
Properties
.
Settings
.
Default
.
workSpaceSetting
=
workBox
.
Text
;
Properties
.
Settings
.
Default
.
workSpaceSetting
=
workBox
.
Text
;
Properties
.
Settings
.
Default
.
targetSetting
=
targetBox
.
Text
;
Properties
.
Settings
.
Default
.
Save
();
Properties
.
Settings
.
Default
.
Save
();
}
}
...
...
Code/CSRender/CSRender/Properties/Settings.Designer.cs
View file @
5fae209f
...
@@ -106,5 +106,29 @@ namespace CSRender.Properties {
...
@@ -106,5 +106,29 @@ namespace CSRender.Properties {
this
[
"workSpaceSetting"
]
=
value
;
this
[
"workSpaceSetting"
]
=
value
;
}
}
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
referenceSetting
{
get
{
return
((
string
)(
this
[
"referenceSetting"
]));
}
set
{
this
[
"referenceSetting"
]
=
value
;
}
}
[
global
::
System
.
Configuration
.
UserScopedSettingAttribute
()]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Configuration
.
DefaultSettingValueAttribute
(
""
)]
public
string
targetSetting
{
get
{
return
((
string
)(
this
[
"targetSetting"
]));
}
set
{
this
[
"targetSetting"
]
=
value
;
}
}
}
}
}
}
Code/CSRender/CSRender/Properties/Settings.settings
View file @
5fae209f
...
@@ -23,5 +23,11 @@
...
@@ -23,5 +23,11 @@
<Setting
Name=
"workSpaceSetting"
Type=
"System.String"
Scope=
"User"
>
<Setting
Name=
"workSpaceSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
<Value
Profile=
"(Default)"
/>
</Setting>
</Setting>
<Setting
Name=
"referenceSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
</Setting>
<Setting
Name=
"targetSetting"
Type=
"System.String"
Scope=
"User"
>
<Value
Profile=
"(Default)"
/>
</Setting>
</Settings>
</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