public void setTimer(RecipeStepTimerHandler h)
 {
     this.handler = h;
     this.progressBar.Max = h.GetFullTime ();
     TextView tv = this.displayFrame.FindViewById<TextView> (Resource.Id.walkthrough_text);
     tv.Text = h.GetTimerName();
     h.addObserver (this);
     this.displayFrame.Visibility = ViewStates.Visible;
 }
Ejemplo n.º 2
0
 public void TestCreateTimer()
 {
     RecipeStepTimerHandler handler = new RecipeStepTimerHandler("testTimer", 5);
     Assert.AreEqual("testTimer", handler.GetTimerName());
     Assert.AreEqual(5, handler.GetFullTime());
 }