private void ShowGridSettings() { var gridsetting = new GridSettings(CurrentGridConfig); if (gridsetting.ShowDialog() != true) { return; } CurrentGridConfig = gridsetting.GridConfig; }