mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(FixedSetSetting): another application setting class.
This commit is contained in:
parent
0009e3fa15
commit
3dabada74e
@ -23,6 +23,7 @@
|
|||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
|
|
||||||
@ -109,6 +110,9 @@ namespace GameRes
|
|||||||
public LocalResourceSetting () : base (GameRes.Properties.Settings.Default) { }
|
public LocalResourceSetting () : base (GameRes.Properties.Settings.Default) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Application setting represented by integer range.
|
||||||
|
/// </summary>
|
||||||
public class FixedGaugeSetting : ApplicationSetting
|
public class FixedGaugeSetting : ApplicationSetting
|
||||||
{
|
{
|
||||||
public int Min { get; set; }
|
public int Min { get; set; }
|
||||||
@ -119,4 +123,16 @@ namespace GameRes
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Application setting that has limited set of possible values.
|
||||||
|
/// </summary>
|
||||||
|
public class FixedSetSetting : ApplicationSetting
|
||||||
|
{
|
||||||
|
public IEnumerable ValuesSet { get; set; }
|
||||||
|
|
||||||
|
public FixedSetSetting (ApplicationSettingsBase settings) : base (settings)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user