private void CreateAddressList() { _fileBrowserDialog.IsSaveFileDialog = true; _fileBrowserDialog.Reset(); if (_fileBrowserDialog.ShowDialog()) { _repository.Create <AddressList>(_fileBrowserDialog.SelectedPath); } }
private List <string> AddFile() { _fileBrowserDialog.Multiselect = true; _fileBrowserDialog.CheckFileExists = true; _fileBrowserDialog.StartFolder = FolderPath; if (_fileBrowserDialog.ShowDialog() && _fileBrowserDialog.SelectedPaths.Any()) { return(_fileBrowserDialog.SelectedPaths.ToList()); } _fileBrowserDialog.Reset(); return(null); }