示例#1
0
 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();
 }
示例#2
0
        protected async void Delete()
        {
            await DeleteConfirmation.Show();

            //if (await JSRuntime.InvokeAsync<bool>("confirm", $"Are you sure you want to delete this patient?"))
            //    return;
        }
示例#3
0
        protected async Task Delete_Click()
        {
            //await EmployeeService.DeleteEmployee(Employee.EmployeeId);
            //NavigationManager.NavigateTo("/");

            DeleteConfirmation.Show();
        }
示例#4
0
        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();
 }
示例#6
0
 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();
 }
示例#7
0
        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();
        }
示例#8
0
        protected async Task Delete_Click()
        {
            DeleteConfirmation.Show();

            //await EmployeeService.DeleteEmployee(Employee.EmployeeId);
            //await OnEmployeeDeleted.InvokeAsync(Employee.EmployeeId);

            //NavigationManager.NavigateTo("/", true);
        }
示例#9
0
        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();
            }
        }
示例#10
0
 private void DeleteBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         member = ((Member)MemGrid.SelectedItem);
         DeleteConfirmation Confirmation = new DeleteConfirmation();
         Confirmation.assigner(member);
         Confirmation.Show();
     }
     catch (Exception)
     {
     }
 }
示例#11
0
        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();
        }
示例#12
0
 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)
     {
     }
 }
示例#13
0
 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)
     {
     }
 }
示例#14
0
        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();
        }
示例#15
0
 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();
 }
示例#16
0
 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();
     }
 }
示例#17
0
        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();
        }
示例#18
0
 protected void BtnDelete_Click()
 {
     SetButtonStates(ButtonState.Disabled);
     _btnDeleteState = ButtonState.Loading;
     DeleteConfirmation.Show();
 }
示例#19
0
 protected void Delete_Click()
 {
     DeleteConfirmation.Show();
 }
示例#20
0
 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);
 }
示例#23
0
 protected void Delete(RoleViewModel role)
 {
     Role = role;
     DeleteConfirmation.Show(Role.Name);
 }
示例#24
0
 protected void BtnDelete_Click()
 {
     _btnDeleteState = ButtonState.Loading;
     _btnSaveState   = ButtonState.Disabled;
     DeleteConfirmation.Show();
 }
示例#25
0
 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();
 }