add SingularItemTitle to CollectionSetting - what is this a collection of
This commit is contained in:
parent
99606449ad
commit
e30257c880
@ -26,12 +26,15 @@ namespace MBS.Framework.Settings
|
|||||||
public Setting.SettingCollection Settings { get; } = new Setting.SettingCollection();
|
public Setting.SettingCollection Settings { get; } = new Setting.SettingCollection();
|
||||||
public SettingsGroup.SettingsGroupCollection Items { get; } = new SettingsGroup.SettingsGroupCollection();
|
public SettingsGroup.SettingsGroupCollection Items { get; } = new SettingsGroup.SettingsGroupCollection();
|
||||||
|
|
||||||
public CollectionSetting(string name, string title, SettingsGroup group) : base(name, title, null)
|
public string SingularItemTitle { get; set; } = null;
|
||||||
|
|
||||||
|
public CollectionSetting(string name, string title, SettingsGroup group, string singularItemTitle = null) : base(name, title, null)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < group.Settings.Count; i++)
|
for (int i = 0; i < group.Settings.Count; i++)
|
||||||
{
|
{
|
||||||
Settings.Add(group.Settings[i]);
|
Settings.Add(group.Settings[i]);
|
||||||
}
|
}
|
||||||
|
SingularItemTitle = singularItemTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user