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;
        }
Example #3
0
 public bool TupleContainsTwo(TeapotState state, Tuple <TeapotState, TeapotState> teapotState)
 {
     return(teapotState.Item1 == state && teapotState.Item2 == state);
 }
Example #4
0
 public bool TupleContainsAtleastOne(TeapotState state, Tuple <TeapotState, TeapotState> teapotState)
 {
     return(teapotState.Item1 == state || teapotState.Item2 == state);
 }