Skip to content

Commit 6c8ab9c

Browse files
Rename ConfirmationDialog
1 parent 4427e3c commit 6c8ab9c

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

AudioCuesheetEditor.Tests/Services/IO/ImportManagerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public async Task AnalyseImportfile_ExistingCuesheet_OverwritesCuesheet()
199199
Assert.AreEqual(importCuesheet.Audiofile, sessionStateContainerCuesheet.Audiofile.Name);
200200
Assert.IsNotNull(sessionStateContainerCuesheet.CDTextfile);
201201
Assert.AreEqual(importCuesheet.CDTextfile, sessionStateContainerCuesheet.CDTextfile.Name);
202-
Assert.AreEqual(importCuesheet.Tracks.Count, sessionStateContainerCuesheet.Tracks.Count);
202+
Assert.HasCount(importCuesheet.Tracks.Count, sessionStateContainerCuesheet.Tracks);
203203
Assert.AreEqual(importCuesheet.Tracks.First().Artist, sessionStateContainerCuesheet.Tracks.First().Artist);
204204
Assert.AreEqual(importCuesheet.Tracks.First().Begin, sessionStateContainerCuesheet.Tracks.First().Begin);
205205
Assert.AreEqual(importCuesheet.Tracks.First().End, sessionStateContainerCuesheet.Tracks.First().End);

AudioCuesheetEditor/Shared/AppBar.razor

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ along with Foobar. If not, see
156156

157157
async Task ResetCuesheetClicked()
158158
{
159-
var parameters = new DialogParameters<ConfirmDialog>
159+
var parameters = new DialogParameters<ConfirmationDialog>
160160
{
161161
{ x => x.ConfirmText, _localizer["Are you sure you want reset the cuesheet? All information you have not saved are lost!"] },
162162
};
163163
var options = new DialogOptions() { BackdropClick = false };
164-
var dialog = await _dialogService.ShowAsync<ConfirmDialog>(_localizer["Confirm"], parameters, options);
164+
var dialog = await _dialogService.ShowAsync<ConfirmationDialog>(_localizer["Confirm"], parameters, options);
165165
var result = await dialog.Result;
166166
if (result?.Canceled == false)
167167
{
@@ -172,12 +172,12 @@ along with Foobar. If not, see
172172

173173
async Task ResetApplicationClicked()
174174
{
175-
var parameters = new DialogParameters<ConfirmDialog>
175+
var parameters = new DialogParameters<ConfirmationDialog>
176176
{
177177
{ x => x.ConfirmText, _localizer["Are you sure you want reset the application? All information you have not saved are lost!"] },
178178
};
179179
var options = new DialogOptions() { BackdropClick = false };
180-
var dialog = await _dialogService.ShowAsync<ConfirmDialog>(_localizer["Confirm"], parameters, options);
180+
var dialog = await _dialogService.ShowAsync<ConfirmationDialog>(_localizer["Confirm"], parameters, options);
181181
var result = await dialog.Result;
182182
if (result?.Canceled == false)
183183
{
@@ -192,12 +192,12 @@ along with Foobar. If not, see
192192
//Check if there are already any changes
193193
if ((TraceChangeManager.CanUndo) || (TraceChangeManager.CanRedo))
194194
{
195-
var parameters = new DialogParameters<ConfirmDialog>
195+
var parameters = new DialogParameters<ConfirmationDialog>
196196
{
197197
{ x => x.ConfirmText, _localizer["Are you sure you want reset the cuesheet? All information you have not saved are lost!"] },
198198
};
199199
var options = new DialogOptions() { BackdropClick = false };
200-
var dialog = await _dialogService.ShowAsync<ConfirmDialog>(_localizer["Confirm"], parameters, options);
200+
var dialog = await _dialogService.ShowAsync<ConfirmationDialog>(_localizer["Confirm"], parameters, options);
201201
var result = await dialog.Result;
202202
if (result?.Canceled == false)
203203
{

AudioCuesheetEditor/Shared/Cuesheet/EditSections.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ along with Foobar. If not, see
127127

128128
async Task DeleteAllSections()
129129
{
130-
var parameters = new DialogParameters<ConfirmDialog>
130+
var parameters = new DialogParameters<ConfirmationDialog>
131131
{
132132
{ x => x.ConfirmText, _localizer["Are you sure you want to remove all sections?"] },
133133
};
134-
var dialog = await _dialogService.ShowAsync<ConfirmDialog>(_localizer["Confirm"], parameters);
134+
var dialog = await _dialogService.ShowAsync<ConfirmationDialog>(_localizer["Confirm"], parameters);
135135
var result = await dialog.Result;
136136
if (result?.Canceled == false)
137137
{

AudioCuesheetEditor/Shared/Dialogs/ConfirmDialog.de.resx renamed to AudioCuesheetEditor/Shared/Dialogs/ConfirmationDialog.de.resx

File renamed without changes.

AudioCuesheetEditor/Shared/Dialogs/ConfirmDialog.razor renamed to AudioCuesheetEditor/Shared/Dialogs/ConfirmationDialog.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ along with Foobar. If not, see
1717
-->
1818
@inherits BaseLocalizedComponent
1919

20-
@inject IStringLocalizer<ConfirmDialog> _localizer
20+
@inject IStringLocalizer<ConfirmationDialog> _localizer
2121

2222
<MudDialog>
2323
<DialogContent>

AudioCuesheetEditor/Shared/Dialogs/ConfirmDialog.resx renamed to AudioCuesheetEditor/Shared/Dialogs/ConfirmationDialog.resx

File renamed without changes.

AudioCuesheetEditor/Shared/Import/Importprofiles.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ along with Foobar. If not, see
165165

166166
async Task ResetProfiles()
167167
{
168-
var parameters = new DialogParameters<ConfirmDialog>
168+
var parameters = new DialogParameters<ConfirmationDialog>
169169
{
170170
{ x => x.ConfirmText, _localizer["Are you sure you want to reset the import profiles to factory default?"] },
171171
};
172-
var dialog = await _dialogService.ShowAsync<ConfirmDialog>(_localizer["Confirm"], parameters);
172+
var dialog = await _dialogService.ShowAsync<ConfirmationDialog>(_localizer["Confirm"], parameters);
173173
var result = await dialog.Result;
174174
if (result?.Canceled == false)
175175
{

AudioCuesheetEditor/Shared/TrackList/TrackList.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ along with Foobar. If not, see
198198

199199
async Task OnDeleteAllTracksClicked()
200200
{
201-
var parameters = new DialogParameters<ConfirmDialog>
201+
var parameters = new DialogParameters<ConfirmationDialog>
202202
{
203203
{ x => x.ConfirmText, _localizer["Are you sure you want to remove all tracks?"] },
204204
};
205-
var dialog = await _dialogService.ShowAsync<ConfirmDialog>(_localizer["Confirm"], parameters);
205+
var dialog = await _dialogService.ShowAsync<ConfirmationDialog>(_localizer["Confirm"], parameters);
206206
var result = await dialog.Result;
207207
if (result?.Canceled == false)
208208
{

0 commit comments

Comments
 (0)