From 1c78e75ba946cda50c5158e0efac56408df6a920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gabriel=2Ehuot-v=C3=A9zina?= Date: Thu, 21 Nov 2024 14:18:38 -0500 Subject: [PATCH] Slight picklist editor UI adjustement --- GSCFieldApp/Dictionaries/DatabaseLiterals.cs | 1 + GSCFieldApp/ViewModel/PicklistViewModel.cs | 5 ++++- GSCFieldApp/Views/PicklistPage.xaml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/GSCFieldApp/Dictionaries/DatabaseLiterals.cs b/GSCFieldApp/Dictionaries/DatabaseLiterals.cs index 01d8434e..72a6485f 100644 --- a/GSCFieldApp/Dictionaries/DatabaseLiterals.cs +++ b/GSCFieldApp/Dictionaries/DatabaseLiterals.cs @@ -473,6 +473,7 @@ public enum TableNames { meta, location, station, earthmat, sample, mineralizati public const string KeywordColourGeneric = "COLOUR_GENERIC"; //Name of the generic colour picklist within M_DICTIONNARY_MANAGER public const string KeywordColourIntensity = "COLOUR_INTENSITY"; //Name of the intensity colour picklist within M_DICTIONNARY_MANAGER public const string KeywordColourQualifier = "COLOUR_QUALIFIER"; //Name of the qualifier colour picklist within M_DICTIONNARY_MANAGER + public const string KeywordLinework = "line"; //Used for picklist editor #endregion #region Database guids diff --git a/GSCFieldApp/ViewModel/PicklistViewModel.cs b/GSCFieldApp/ViewModel/PicklistViewModel.cs index 5feb49be..f236cb19 100644 --- a/GSCFieldApp/ViewModel/PicklistViewModel.cs +++ b/GSCFieldApp/ViewModel/PicklistViewModel.cs @@ -359,7 +359,10 @@ private async Task FillTablePicklist(SQLiteAsyncConnection inConnectio { voc.Description = LocalizationResourceManager["FielNotesStructureHeader"].ToString(); } - + if (vcms.ThemeAssignTable.ToLower().Contains(KeywordLinework)) + { + voc.Description = LocalizationResourceManager["FielNotesLineworkHeader"].ToString(); + } //Prevent bs from beind added. if (voc.Code != null && voc.Code != string.Empty) { diff --git a/GSCFieldApp/Views/PicklistPage.xaml b/GSCFieldApp/Views/PicklistPage.xaml index 174a88ed..4cb8b2c8 100644 --- a/GSCFieldApp/Views/PicklistPage.xaml +++ b/GSCFieldApp/Views/PicklistPage.xaml @@ -61,11 +61,11 @@ - + - +