public static FabWeightPreset GetDebugPreset(string presetID) { if (GlobalParameters.Instance.ApplyDebug == false) { return(null); } string debugPreset = InputMart.Instance.GlobalParameters.DebugPreset; if (string.IsNullOrEmpty(debugPreset) == false && LcdHelper.IsEmptyID(debugPreset) == false) { int index = presetID.IndexOf("_"); if (index >= 0) { string testPresetID = LcdHelper.Concat(debugPreset, presetID.Substring(index)); var preset = WeightHelper.GetWeightPreset(testPresetID); return(preset); } } return(null); }