Beispiel #1
0
        private void WatchToggle(Button button, int watchIndex)
        {
            bool watchSuccess = viewmodel.StartWatching(watchIndex);

            if (watchSuccess)
            {
                button.Text = "Stop watch";
            }
            else
            {
                button.Text = "Start watch";
            }
        }