private void BtnClose_Click(object sender, RoutedEventArgs e) { FieldGrid.UpdateSettings(); Application.Current.Shutdown(); }