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