Commit c1b1cd01 authored by tsuji's avatar tsuji

UpDownメニューの初期値(前回記憶値)が表示されない不具合を修正

parent 933feca2
......@@ -11,22 +11,22 @@
<userSettings>
<CSRender.Properties.Settings>
<setting name="resolutionSetting" serializeAs="String">
<value />
<value>75</value>
</setting>
<setting name="formatSetting" serializeAs="String">
<value />
</setting>
<setting name="shiftPixelSetting" serializeAs="String">
<value />
<value>2</value>
</setting>
<setting name="colorMarginSetting" serializeAs="String">
<value />
<value>60</value>
</setting>
<setting name="removePointSetting" serializeAs="String">
<value />
<value>8</value>
</setting>
<setting name="shadingOffSetting" serializeAs="String">
<value />
<value>5</value>
</setting>
<setting name="workSpaceSetting" serializeAs="String">
<value />
......
......@@ -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();
......
......@@ -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;
......
......@@ -2,23 +2,23 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="CSRender.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="resolutionSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
<Setting Name="resolutionSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">75</Value>
</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 Name="shiftPixelSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">2</Value>
</Setting>
<Setting Name="colorMarginSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
<Setting Name="colorMarginSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">60</Value>
</Setting>
<Setting Name="removePointSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
<Setting Name="removePointSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">8</Value>
</Setting>
<Setting Name="shadingOffSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
<Setting Name="shadingOffSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">5</Value>
</Setting>
<Setting Name="workSpaceSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment