|
Vereinsmeisterschaften
22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
|
This page describes how to add new workspace settings and groups.
public const string GROUP_NEWGROUP = "NewGroup";initializeSettings() in WorkspaceSettings.cs:WorkspaceSettingsGroup groupNewGroup = GetGroup(GROUP_NEWGROUP, true);GroupKeyLabelsDict in WorkspaceSettingViewConfigs.cs (Vereinsmeisterschaften > ViewModels):{ WorkspaceSettings.GROUP_NEWGROUP, Resources.SettingsNewGroupString }public const string SETTING_GENERAL_NEWSETTING = "NewSetting";initializeSettings() in WorkspaceSettings.cs:groupNewGroup.MakeSureSettingExists<ushort>(SETTING_GENERAL_NEWSETTING, defaultValue, minValue, maxValue);ResourceDictionary with a unique key (e.g. DrawingImage_NewSetting)Icon (e.g. "\uE787")SettingKeyConfigDict in WorkspaceSettingViewConfigs.cs (Vereinsmeisterschaften > ViewModels): {
(WorkspaceSettings.GROUP_NEWGROUP, WorkspaceSettings.SETTING_GENERAL_NEWSETTING),
new WorkspaceSettingViewConfig() { Label=Resources.NewSettingString, Tooltip = Tooltips.TooltipNewSetting, Icon = "\uE787", Editor = WorkspaceSettingEditorTypes.Numeric, SupportResetToDefault = false }
}, {
(WorkspaceSettings.GROUP_NEWGROUP, WorkspaceSettings.SETTING_GENERAL_NEWSETTING),
new WorkspaceSettingViewConfig() { Label=Resources.NewSettingString, Tooltip = Tooltips.TooltipNewSetting, IconDrawingImage = (DrawingImage)iconResourceDict["DrawingImage_NewSetting"], Editor = WorkspaceSettingEditorTypes.Numeric, SupportResetToDefault = false }
}, The order of the workspace settings in the .json file is determined by the order of the settings in WorkspaceSettings.cs (Vereinsmeisterschaften.Core > Settings).
The order of the workspace settings in the UI is determined by the order of the settings in the SettingKeyConfigDict and GroupKeyLabelsDict in WorkspaceSettingViewConfigs.cs (Vereinsmeisterschaften > ViewModels).