public RequestCacheDeletion ( IOptionsViewModel viewModel ) : void | ||
viewModel | IOptionsViewModel | |
return | void |
public void RequestCacheDeletion (IOptionsViewModel viewModel)
{
s_logger.InfoFormat ("Deleting cache for profile '{0}'", viewModel.Name);
var profileDataDirectory = _profileDataDirectoryFactory (viewModel.Id);
if (Directory.Exists (profileDataDirectory))
Directory.Delete (profileDataDirectory, true);
MessageBox.Show ("A new intial sync will be performed with the next sync run!", "Profile cache deleted",MessageBoxButton.OK, MessageBoxImage.Information);
}