private void OnCheckButtonCommand(object param) { _excel.CheckIfDownloaded(); if (_excel.IsDownloaded) { if (MessageBox.Show("The spreadsheet is already downloaded", "Would you like to replace the file?", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes) { _excel.DeleteExisting(); _excel.DownloadUrl("https://www.asx.com.au/asx/research/ASXListedCompanies.csv"); } _excel.LoadRange(4, 1); } }