protected override void OnAppearing() { TeapotState teapotState = Logic.GetTeapotState(); Water.Value = teapotState.currentWaterAmount; Temperature.Value = teapotState.currentTemperature; }
public TeapotDetails() { InitializeComponent(); TeapotState teapotState = Logic.GetTeapotState(); Water.Value = teapotState.currentWaterAmount; Temperature.Value = teapotState.currentTemperature; }
public bool TupleContainsTwo(TeapotState state, Tuple <TeapotState, TeapotState> teapotState) { return(teapotState.Item1 == state && teapotState.Item2 == state); }
public bool TupleContainsAtleastOne(TeapotState state, Tuple <TeapotState, TeapotState> teapotState) { return(teapotState.Item1 == state || teapotState.Item2 == state); }