public static string BooleanToText(bool value) { if (value) { return(ReSourceManage.GetResource(BooleanValue.True)); } return(ReSourceManage.GetResource(BooleanValue.False)); }
public static bool ToBooLean(string value) { string trueValue = ReSourceManage.GetResource(BooleanValue.True); if (string.Compare(trueValue, value, true) == 0) { return(true); } return(false); }