/// <summary> /// Executor that is called on delete button click /// </summary> private void DeleteCommandExecutor() { // not delete if not created if (Id == 0) { return; } var result = _dialogService.ShowMessageBox( $"Are you sure that the account '{Identifier}' should be removed?", $"Remove Account: {Identifier}", MessageBoxImage.Question, MessageBoxButtons.OkCancel() ); if (result == MessageBoxResult.OK) { MessengerInstance.Send(new DeleteAccountNotification(StoredAccount)); } }
public async void Overwrite(UMaterialInstance materialInstance) { var sucess = await _applicationView.ModelViewer.TryOverwriteMaterial(materialInstance); if (sucess) { _applicationView.CUE4Parse.ModelIsOverwritingMaterial = false; } else { MessageBox.Show(new MessageBoxModel { Text = "An attempt to load a material failed.", Caption = "Error", Icon = MessageBoxImage.Error, Buttons = MessageBoxButtons.OkCancel(), IsSoundEnabled = false }); } }