Exemple #1
0
        private void DeleteClicked()
        {
            var modalMessage = "你确定要删除版面吗?这同时会删除掉相关的子版块、话题、帖子";

            blazorModal.Show <ConfirmModal>("删除版面", BlazorModalParameter.Get("ModalText", modalMessage),
                                            BlazorModalParameter.Get("ItemToDelete", "forum"));
        }
Exemple #2
0
        private void DeleteCategoryClicked()
        {
            var modalMessage = "确定要删除子版块吗?这同时将删除相关的话题、帖子";

            blazorModal.Show <ConfirmModal>("删除子版块",
                                            BlazorModalParameter.Get("ModalText", modalMessage),
                                            BlazorModalParameter.Get("ItemToDelete", "category"));
        }
Exemple #3
0
        private void DeleteTopicClicked()
        {
            var modalMessage = "确定要删除话题及相应的帖子吗?";

            blazorModal.Show <ConfirmModal>("删除话题",
                                            BlazorModalParameter.Get("ModalText", modalMessage),
                                            BlazorModalParameter.Get("ItemToDelete", "topic"));
        }
Exemple #4
0
        private void DeletePostClicked(int id)
        {
            _postIdToDelete = id;
            var modalMessage = "确定要删除帖子吗?";

            blazorModal.Show <ConfirmModal>("删除帖子",
                                            BlazorModalParameter.Get("ModalText", modalMessage),
                                            BlazorModalParameter.Get("ItemToDelete", "post-item"));
        }
Exemple #5
0
        private void DeleteTopicClicked(int topicId)
        {
            _itemIdToDelete = topicId;
            string modalMessage = "确定要删除话题及相应的帖子吗?";

            if (_itemIdToDelete != -1)
            {
                blazorModal.Show <ConfirmModal>("删除",
                                                BlazorModalParameter.Get("ModalText", modalMessage),
                                                BlazorModalParameter.Get("ItemToDelete", "topic-item"));
            }
        }