Save old value time

This commit is contained in:
Vladimir
2024-05-20 19:56:41 +04:00
parent 5c48e9803f
commit 0e69ee8e09
4 changed files with 22 additions and 7 deletions

View File

@@ -106,5 +106,17 @@ namespace RelaunchProcess.Properties {
this["restartNow"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("30")]
public decimal timer {
get {
return ((decimal)(this["timer"]));
}
set {
this["timer"] = value;
}
}
}
}

View File

@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="WindowsFormsApp1.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="RelaunchProcess.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="startProgramPath" Type="System.String" Scope="User">
@@ -23,5 +23,8 @@
<Setting Name="restartNow" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="timer" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">30</Value>
</Setting>
</Settings>
</SettingsFile>