private void TestReadWriteSettingFont(string FolderPath, Setting setting)
        {
            ReceivedValueFont value = DbSettings.GetSettingFont(FolderPath, setting.IdSetting);

            if (value.Code.Error)
            {
                Print($"ERROR !!! Could not get current value of setting {setting.IdSetting}"); return;
            }
            //Print($"-Current value of setting = {value.Value}");
            //---------------------------------------------------------------------------------------------------------
            Font       NewValue = new Font(ListFont.PickRandom(), rnd.Next(8, 28));
            ReturnCode code     = DbSettings.SaveSettingFont(FolderPath, setting.IdSetting, NewValue);

            if (code.Error)
            {
                Print($"ERROR *** Could not SAVE value = {NewValue} of setting {setting.IdSetting}"); return;
            }
            //Print($"-Saved new value of setting = {NewValue}");
            Thread.Sleep(123);
            //---------------------------------------------------------------------------------------------------------
            value = DbSettings.GetSettingFont(FolderPath, setting.IdSetting);
            if (value.Code.Error)
            {
                Print($"ERROR !?!?! Could not get current value of setting {setting.IdSetting}"); return;
            }
            if (value.Value.ToString() != NewValue.ToString())
            {
                Print($"ERROR !*!*! New value = {NewValue.ToString()} , Current value = {value.Value.ToString()}"); return;
            }
            Print("------------------- OK. Test passed. -------------------");
        }
 public void FillListOfFonts()
 {
     ListFont.Clear();
     ListFont.Add("Arial");
     ListFont.Add("Comic Sans MS");
     ListFont.Add("Verdana");
     ListFont.Add("Calibri");
     ListFont.Add("Consolas");
     ListFont.Add("Courier New");
     ListFont.Add("Microsoft Sans Serif");
     ListFont.Add("Palatino Linotype");
     ListFont.Add("Segoe UI");
     ListFont.Add("Tahoma");
     ListFont.Add("Times New Roman");
     ListFont.Add("Trebuchet MS");
 }