From 5fae209f89aafa003a804b1cc087abad7f7ddfce Mon Sep 17 00:00:00 2001 From: tsuji Date: Fri, 10 Dec 2021 10:23:43 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AF=BE=E8=B1=A1=E3=83=95=E3=82=A9=E3=83=AB?= =?UTF-8?q?=E3=83=80=E3=81=A8=E3=83=AA=E3=83=95=E3=82=A1=E3=83=AC=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E3=83=95=E3=82=A9=E3=83=AB=E3=83=80=E3=81=AE=E5=89=8D?= =?UTF-8?q?=E5=9B=9E=E5=80=A4=E3=82=92=E8=A8=98=E6=86=B6=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E6=94=B9=E8=89=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/CSRender/CSRender/App.config | 6 +++++ Code/CSRender/CSRender/MainWindow.xaml.cs | 11 +++++++++ .../CSRender/Properties/Settings.Designer.cs | 24 +++++++++++++++++++ .../CSRender/Properties/Settings.settings | 6 +++++ 4 files changed, 47 insertions(+) diff --git a/Code/CSRender/CSRender/App.config b/Code/CSRender/CSRender/App.config index 0ae7915..40b54f2 100644 --- a/Code/CSRender/CSRender/App.config +++ b/Code/CSRender/CSRender/App.config @@ -31,6 +31,12 @@ + + + + + + \ No newline at end of file diff --git a/Code/CSRender/CSRender/MainWindow.xaml.cs b/Code/CSRender/CSRender/MainWindow.xaml.cs index 2535733..3b71b5c 100644 --- a/Code/CSRender/CSRender/MainWindow.xaml.cs +++ b/Code/CSRender/CSRender/MainWindow.xaml.cs @@ -61,6 +61,8 @@ namespace CSRender SmallDiffBox.Value = Properties.Settings.Default.removePointSetting; VisualBox.Value = Properties.Settings.Default.shadingOffSetting; 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); @@ -109,6 +111,8 @@ namespace CSRender "\nもう一度設定してください。", "The specified file or folder does not exist", MessageBoxButton.OK, MessageBoxImage.Information); ResultConsole.Text += " 指定された対象ファイルあるいはフォルダを発見できませんでした\r\n"; ResultConsole.Text += "\r\n"; + Properties.Settings.Default.targetSetting = ""; + Properties.Settings.Default.Save(); return; } @@ -119,6 +123,8 @@ namespace CSRender "\nもう一度設定してください。", "The specified reference file or folder does not exist", MessageBoxButton.OK, MessageBoxImage.Information); ResultConsole.Text += " 指定されたリファレンスファイルあるいはフォルダを発見できませんでした\r\n"; ResultConsole.Text += "\r\n"; + Properties.Settings.Default.referenceSetting = ""; + Properties.Settings.Default.Save(); return; } @@ -236,6 +242,8 @@ namespace CSRender Properties.Settings.Default.removePointSetting = SmallDiffBox.Value; Properties.Settings.Default.shadingOffSetting = VisualBox.Value; Properties.Settings.Default.workSpaceSetting = workBox.Text; + Properties.Settings.Default.targetSetting = targetBox.Text; + Properties.Settings.Default.referenceSetting = referenceBox.Text; Properties.Settings.Default.Save(); } @@ -308,6 +316,8 @@ namespace CSRender "\nもう一度TIFF出力する対象を設定してください。", "The specified file or folder does not exist", MessageBoxButton.OK, MessageBoxImage.Information); ResultConsole.Text += " 指定された対象ファイルあるいはフォルダを発見できませんでした\r\n"; ResultConsole.Text += "<変換中止>\r\n"; + Properties.Settings.Default.targetSetting = ""; + Properties.Settings.Default.Save(); return; } @@ -339,6 +349,7 @@ namespace CSRender Properties.Settings.Default.resolutionSetting = ResolutionBox.Value; Properties.Settings.Default.formatSetting = FileSelect.Text; Properties.Settings.Default.workSpaceSetting = workBox.Text; + Properties.Settings.Default.targetSetting = targetBox.Text; Properties.Settings.Default.Save(); } diff --git a/Code/CSRender/CSRender/Properties/Settings.Designer.cs b/Code/CSRender/CSRender/Properties/Settings.Designer.cs index fe85426..f713c43 100644 --- a/Code/CSRender/CSRender/Properties/Settings.Designer.cs +++ b/Code/CSRender/CSRender/Properties/Settings.Designer.cs @@ -106,5 +106,29 @@ namespace CSRender.Properties { 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; + } + } } } diff --git a/Code/CSRender/CSRender/Properties/Settings.settings b/Code/CSRender/CSRender/Properties/Settings.settings index 9124af5..d9439ab 100644 --- a/Code/CSRender/CSRender/Properties/Settings.settings +++ b/Code/CSRender/CSRender/Properties/Settings.settings @@ -23,5 +23,11 @@ + + + + + + \ No newline at end of file -- 2.22.0