private async void DeleteFileSystem(object o) { if (!await _messageBoxService.ShowAction(openmediavault.DeleteFileSystem, openmediavault.DoYouReallyWantToDeleteTheFileSystem_AllDataWillBeLost_)) { return; } if (o is OmvFilesystems filesystem) { await ViewModelStateItem.RunActionAsync(async() => { await _omvService.DeleteFileSystem(filesystem); var fileneame = await _omvService.ApplyChanges(); await _omvService.CheckRunningAsync(fileneame); await RefreshData(); }, () => SetLabelsStateItem("FileSystemMgmt", openmediavault.ApplyConfigurationChanges), () => { SetLabelsStateItem("FileSystemMgmt", openmediavault.Done___); }); } }