public void Export() { var exportSelectFile = new SaveFileDialog { DefaultExt = ".bc.config", Filter = "Calculator Configuration (.bc.config)|*.bc.config", Title = "Export Sharp.Ballistics Calculator Configuration", ValidateNames = true, CheckPathExists = true }; if (exportSelectFile.ShowDialog() ?? false) { Task.Run(() => model.Export(exportSelectFile.FileName)); } }