private void _clear() { HeightValue.Clear(); WeightValue.Clear(); lastFocused.Clear(); BMI_Value.Clear(); BMI_Value.BackColor = Color.White; progressBar2.Value = 0; label2.Text = "BODY TYPE"; label2.BackColor = Color.Gainsboro; }
public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) { if (untypedValue == null) { serializer.Serialize(writer, null); return; } HeightValue value = (HeightValue)untypedValue; if (value == HeightValue.Height) { serializer.Serialize(writer, "height"); return; } throw new Exception("Cannot marshal type FluffyValue"); }