From c1b1cd019313782fabddd48f46b3861011c808fa Mon Sep 17 00:00:00 2001 From: tsuji Date: Thu, 9 Dec 2021 16:55:17 +0900 Subject: [PATCH] =?UTF-8?q?UpDown=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E5=88=9D=E6=9C=9F=E5=80=A4=EF=BC=88=E5=89=8D=E5=9B=9E?= =?UTF-8?q?=E8=A8=98=E6=86=B6=E5=80=A4=EF=BC=89=E3=81=8C=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E4=B8=8D=E5=85=B7=E5=90=88?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/CSRender/CSRender/App.config | 10 +++---- Code/CSRender/CSRender/MainWindow.xaml.cs | 24 +++++++-------- .../CSRender/Properties/Settings.Designer.cs | 30 +++++++++---------- .../CSRender/Properties/Settings.settings | 20 ++++++------- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Code/CSRender/CSRender/App.config b/Code/CSRender/CSRender/App.config index 4182210..0ae7915 100644 --- a/Code/CSRender/CSRender/App.config +++ b/Code/CSRender/CSRender/App.config @@ -11,22 +11,22 @@ - + 75 - + 2 - + 60 - + 8 - + 5 diff --git a/Code/CSRender/CSRender/MainWindow.xaml.cs b/Code/CSRender/CSRender/MainWindow.xaml.cs index c4e4185..dfe81c6 100644 --- a/Code/CSRender/CSRender/MainWindow.xaml.cs +++ b/Code/CSRender/CSRender/MainWindow.xaml.cs @@ -51,12 +51,12 @@ namespace CSRender FileSelect.ItemsSource = FilePattern; //デフォルトに前回の設定値を表示 - ResolutionBox.Text = Properties.Settings.Default.resolutionSetting; + ResolutionBox.Value = 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; + PositionBox.Value = Properties.Settings.Default.shiftPixelSetting; + GradationBox.Value = Properties.Settings.Default.colorMarginSetting; + SmallDiffBox.Value = Properties.Settings.Default.removePointSetting; + VisualBox.Value = Properties.Settings.Default.shadingOffSetting; workBox.Text = Properties.Settings.Default.workSpaceSetting; //ドラッグ&ドロップイベントの追加 @@ -221,14 +221,14 @@ namespace CSRender ResultConsole.Text += " 検版レポートのパス:"; ResultConsole.Text += System.IO.Path.Combine(workBox.Text, "report", PDFName); ResultConsole.Text += "\r\n"; - + //パラメータを次回初期値用に保存 - Properties.Settings.Default.resolutionSetting = ResolutionBox.Text; + Properties.Settings.Default.resolutionSetting = ResolutionBox.Value; 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.shiftPixelSetting = PositionBox.Value; + Properties.Settings.Default.colorMarginSetting = GradationBox.Value; + Properties.Settings.Default.removePointSetting = SmallDiffBox.Value; + Properties.Settings.Default.shadingOffSetting = VisualBox.Value; Properties.Settings.Default.workSpaceSetting = workBox.Text; Properties.Settings.Default.Save(); } @@ -327,7 +327,7 @@ namespace CSRender ResultConsole.ScrollToEnd(); //パラメータを次回初期値用に保存 - Properties.Settings.Default.resolutionSetting = ResolutionBox.Text; + Properties.Settings.Default.resolutionSetting = ResolutionBox.Value; Properties.Settings.Default.formatSetting = FileSelect.Text; Properties.Settings.Default.workSpaceSetting = workBox.Text; Properties.Settings.Default.Save(); diff --git a/Code/CSRender/CSRender/Properties/Settings.Designer.cs b/Code/CSRender/CSRender/Properties/Settings.Designer.cs index 5a23713..fe85426 100644 --- a/Code/CSRender/CSRender/Properties/Settings.Designer.cs +++ b/Code/CSRender/CSRender/Properties/Settings.Designer.cs @@ -25,10 +25,10 @@ namespace CSRender.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string resolutionSetting { + [global::System.Configuration.DefaultSettingValueAttribute("75")] + public decimal resolutionSetting { get { - return ((string)(this["resolutionSetting"])); + return ((decimal)(this["resolutionSetting"])); } set { this["resolutionSetting"] = value; @@ -49,10 +49,10 @@ namespace CSRender.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string shiftPixelSetting { + [global::System.Configuration.DefaultSettingValueAttribute("2")] + public decimal shiftPixelSetting { get { - return ((string)(this["shiftPixelSetting"])); + return ((decimal)(this["shiftPixelSetting"])); } set { this["shiftPixelSetting"] = value; @@ -61,10 +61,10 @@ namespace CSRender.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string colorMarginSetting { + [global::System.Configuration.DefaultSettingValueAttribute("60")] + public decimal colorMarginSetting { get { - return ((string)(this["colorMarginSetting"])); + return ((decimal)(this["colorMarginSetting"])); } set { this["colorMarginSetting"] = value; @@ -73,10 +73,10 @@ namespace CSRender.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string removePointSetting { + [global::System.Configuration.DefaultSettingValueAttribute("8")] + public decimal removePointSetting { get { - return ((string)(this["removePointSetting"])); + return ((decimal)(this["removePointSetting"])); } set { this["removePointSetting"] = value; @@ -85,10 +85,10 @@ namespace CSRender.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("")] - public string shadingOffSetting { + [global::System.Configuration.DefaultSettingValueAttribute("5")] + public decimal shadingOffSetting { get { - return ((string)(this["shadingOffSetting"])); + return ((decimal)(this["shadingOffSetting"])); } set { this["shadingOffSetting"] = value; diff --git a/Code/CSRender/CSRender/Properties/Settings.settings b/Code/CSRender/CSRender/Properties/Settings.settings index 8c054fd..9124af5 100644 --- a/Code/CSRender/CSRender/Properties/Settings.settings +++ b/Code/CSRender/CSRender/Properties/Settings.settings @@ -2,23 +2,23 @@ - - + + 75 - - + + 2 - - + + 60 - - + + 8 - - + + 5 -- 2.22.0