private void CreateAddressList()
 {
     _fileBrowserDialog.IsSaveFileDialog = true;
     _fileBrowserDialog.Reset();
     if (_fileBrowserDialog.ShowDialog())
     {
         _repository.Create <AddressList>(_fileBrowserDialog.SelectedPath);
     }
 }
Example #2
0
 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);
 }