Beispiel #1
0
        public App()
        {
            InitializeComponent();
            StopWhatch stopWhatch = new StopWhatch();
            Presenter  presenter  = new Presenter(stopWhatch);

            MainPage = presenter.GetPage;
        }
Beispiel #2
0
 public Presenter(StopWhatch sw)
 {
     stopWhatch = sw;
     stopWhatch.AddObserver(this);
     mainPage = new MainPage();
     mainPage.GetStartButton.Clicked += GetStart_Clicked;
     mainPage.GetStopButton.Clicked  += GetStopButton_Clicked;
 }