private void Remove_Click(object sender, RoutedEventArgs e) { if (!(_survey is null)) { if (MessageBox.Show(LangPages.MBox.DelSurvey, string.Empty, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { surveyController.Remove(_survey.Id); UpdateFields(); } }