private void ActionButton_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; if (button == null) { return; } if (button.Name == "ButtonDontKnow") { LoadNextImage(); } else { LandMini land = new LandMini { GeohexKey = code, EarthwatcherId = Current.Instance.Earthwatcher.Id, IsUsed = button.Name == "ButtonYes" ? true : false }; landRequests.AddPoll(land); } }