public MainWindow() { InitializeComponent(); MyFrame.Navigate(new PlayPage()); SwagMeasurer.Text = Convert.ToString(Swag.Get()); Swag.OnAddition += Swag_Addition; Swag.OnSubtraction += Swag_OnSubtraction; Swag.OnUpdate += Swag_OnUpdate; }
private void Swag_OnUpdate(SwagEventArgs e) { SwagMeasurer.Text = Convert.ToString(Swag.Get()); }