private static string FormatResistanceAxis(ResistanceUoM resistanceUoM) { switch (resistanceUoM) { case ResistanceUoM.Ohm: return(Title.ResistanceCustom1); case ResistanceUoM.muOhm: return(Title.ResistanceCustom2); case ResistanceUoM.mOhm: return(Title.ResistanceCustom3); case ResistanceUoM.kOhm: return(Title.ResistanceCustom4); case ResistanceUoM.MOhm: return(Title.ResistanceCustom5); case ResistanceUoM.GOhm: return(Title.ResistanceCustom6); default: return(Title.ResistanceCustom1); } }
private static double GetResistanceMultiplier(ResistanceUoM resistanceUoM) { switch (resistanceUoM) { case ResistanceUoM.Ohm: return(1); case ResistanceUoM.muOhm: return(1000000); case ResistanceUoM.mOhm: return(1000); case ResistanceUoM.kOhm: return(0.001); case ResistanceUoM.MOhm: return(0.000001); case ResistanceUoM.GOhm: return(0.000000001); default: return(1); } }