Straßenliste speichert nun die einstellung
This commit is contained in:
33
SanSystem/Einstellungen/StreetListSettings.cs
Normal file
33
SanSystem/Einstellungen/StreetListSettings.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SanSystem.Einstellungen
|
||||
{
|
||||
class StreetListSettings : Settings
|
||||
{
|
||||
public StreetListSettings() : base("StreetList")
|
||||
{
|
||||
}
|
||||
|
||||
public void SetRadioButton(string what)
|
||||
{
|
||||
if (what.Equals("Sorted"))
|
||||
setConfig("ort_selected", 1);
|
||||
else
|
||||
setConfig("ort_selected", 0);
|
||||
}
|
||||
|
||||
public bool SortedSelected()
|
||||
{
|
||||
return (getConfiguration("ort_selected") > 0);
|
||||
}
|
||||
|
||||
public override void InitDevValues()
|
||||
{
|
||||
configuration.Add("ort_selected", 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user