public void OnDeleteUser(UserRowData userRowData) { DeleteConfirmation.Message = string.Format(SR.AdminUser_DeleteDialog_AreYouSure, userRowData.DisplayName, userRowData.UserName); DeleteConfirmation.MessageType = MessageBox.MessageTypeEnum.YESNO; DeleteConfirmation.Data = userRowData; DeleteConfirmation.Show(); }
protected async void Delete() { await DeleteConfirmation.Show(); //if (await JSRuntime.InvokeAsync<bool>("confirm", $"Are you sure you want to delete this patient?")) // return; }
protected async Task Delete_Click() { //await EmployeeService.DeleteEmployee(Employee.EmployeeId); //NavigationManager.NavigateTo("/"); DeleteConfirmation.Show(); }
private void DeleteSpo_Click(object sender, RoutedEventArgs e) { Member SelectedMember = ((Member)MemGrid.SelectedItem); if (SelectedMember != null) { Spouse Selected = ((Spouse)_context.spouses.FirstOrDefault(s => s.ParentId == SelectedMember.Id)); if (Selected != null) { DeleteConfirmation deleteConfirmation = new DeleteConfirmation(); deleteConfirmation.assigner(Selected); deleteConfirmation.Show(); Clear_Spouse(); SelectedMember.MariageStatus = false; _context.Entry(SelectedMember).State = System.Data.Entity.EntityState.Modified; _context.SaveChanges(); } else { ErrorMessage er = new ErrorMessage(); er.MessageText.Text = "Must Select a Member first"; er.Show(); } } }
public async void ClickDelete() { DeleteConfirmation.Title = "Delete Task"; DeleteConfirmation.Content = "Are you sure you want to delete this task?"; DeleteConfirmation.ActionButton = "Delete"; DeleteConfirmation.CancelButton = "Cancel"; DeleteConfirmation.Show(); }
protected void Employee_DeletePromptOpened(Employee employeeToDelete) { SetButtonStates(ButtonState.Disabled); BtnDeleteEmployeeStates[employeeToDelete.Id] = ButtonState.Loading; DeleteConfirmation.Show($"Are you sure you want to delete \"{employeeToDelete.FirstName}\"?"); _employeeWaitingForDelete = employeeToDelete; StateHasChanged(); }
public void OnDeleteUserGroup(UserGroupRowData userGroupRowData) { //TODO: Rewrite this. This method is being called by the child control. DeleteConfirmation.Message = string.Format(SR.AdminUserGroups_DeleteDialog_AreYouSure, userGroupRowData.Name); DeleteConfirmation.MessageType = MessageBox.MessageTypeEnum.YESNO; DeleteConfirmation.Data = userGroupRowData; DeleteConfirmation.Show(); }
protected async Task Delete_Click() { DeleteConfirmation.Show(); //await EmployeeService.DeleteEmployee(Employee.EmployeeId); //await OnEmployeeDeleted.InvokeAsync(Employee.EmployeeId); //NavigationManager.NavigateTo("/", true); }
private void DeleteBtn_Click(object sender, RoutedEventArgs e) { Item Selected = ((Item)ItemGrid.SelectedItem); if (Selected != null) { DeleteConfirmation Confirmation = new DeleteConfirmation(); Confirmation.assigner(Selected); Confirmation.Show(); } }
private void DeleteBtn_Click(object sender, RoutedEventArgs e) { try { member = ((Member)MemGrid.SelectedItem); DeleteConfirmation Confirmation = new DeleteConfirmation(); Confirmation.assigner(member); Confirmation.Show(); } catch (Exception) { } }
private void DeleteBtn_Click(object sender, RoutedEventArgs e) { Member SelectedMember = ((Member)MemGrid.SelectedItem); if (SelectedMember != null) { DeleteConfirmation deleteConfirmation = new DeleteConfirmation(); deleteConfirmation.assigner(SelectedMember); deleteConfirmation.Show(); MemGrid.Items.Refresh(); } Clear(); }
private void DeleteBtn_Click(object sender, RoutedEventArgs e) { try { MahiberEvent selected = ((MahiberEvent)EventGrid.SelectedItem); DeleteConfirmation Confirmation = new DeleteConfirmation(); Confirmation.assigner(selected); Confirmation.Show(); } catch (Exception) { } }
private void DeleteBtn_Click(object sender, RoutedEventArgs e) { try { Rule Selected = ((Rule)RulesGrid.SelectedItem); DeleteConfirmation Confirmation = new DeleteConfirmation(); Confirmation.assigner(Selected); Confirmation.Show(); } catch (Exception) { } }
public void OnDeleteDevice(DeviceConfigurationController controller, ServerPartition serverPartition, Device dev) { if (controller.GetRelatedWorkQueueCount(dev) > 0) { DeleteConfirmation.Message = string.Format(ErrorMessages.AdminDevices_DeleteDevice_PendingWorkQueue, dev.AeTitle); DeleteConfirmation.MessageType = MessageBox.MessageTypeEnum.ERROR; } else { DeleteConfirmation.Message = string.Format(SR.AdminDevices_DeleteDevice_AreYouSure, dev.AeTitle, serverPartition.AeTitle); DeleteConfirmation.MessageType = MessageBox.MessageTypeEnum.YESNO; } DeleteConfirmation.Data = dev; DeleteConfirmation.Show(); }
protected async Task DeleteArticle(int?articleId) { if (articleId == null) // Delete Demand { if (listArticleSelected.Count == 0) { toastService.ShowToast(ToastLevel.Warning, "Chưa chọn bài viết để xóa", "Thông báo"); return; } } else { listArticleSelected.Clear(); listArticleSelected.Add((int)articleId); } DeleteConfirmation.Show(); }
public async Task Delete(Guid postId) { try { DeleteConfirmation.Show(); Id = postId; } catch (UserException e) { Logger.LogWarning(e.Message); await ShowErrorMessageAsync(e.Message); } catch (Exception e) { Logger.LogError(e, e.Message); await ShowErrorMessageAsync(); } }
protected void DeleteProduct(int?productId) { if (productId == null) // Delete Demand { if (listProductSelected.Count == 0) { toastService.ShowToast(ToastLevel.Warning, "Chưa chọn bài viết để xóa", "Thông báo"); return; } } else { listProductSelected.Clear(); listProductSelected.Add((int)productId); if (!Repository.Permission.CanDeleteProduct(globalModel.user, globalModel.userId, (int)productId, ref outMessage)) { toastService.ShowError(outMessage, "Thông báo"); return; } } DeleteConfirmation.Show(); }
protected void BtnDelete_Click() { SetButtonStates(ButtonState.Disabled); _btnDeleteState = ButtonState.Loading; DeleteConfirmation.Show(); }
protected void Delete_Click() { DeleteConfirmation.Show(); }
protected void DeleteEmployee() { DeleteConfirmation.Show(); }
// When the delete button is clicked call this protected void Delete_Click() { DeleteConfirmation.Show("Library"); }
protected void Delete(AppUser user) { User = user; DeleteConfirmation.Show(User.FullName); }
protected void Delete(RoleViewModel role) { Role = role; DeleteConfirmation.Show(Role.Name); }
protected void BtnDelete_Click() { _btnDeleteState = ButtonState.Loading; _btnSaveState = ButtonState.Disabled; DeleteConfirmation.Show(); }
protected void Delete(Article article) { Article = article; DeleteConfirmation.Show(Article.Title); }
protected void Delete(int employeeId, string firstName) { this.EmployeeId = employeeId; this.FirstName = firstName; DeleteConfirmation.Show(); }