WinPSI/SM/FrmToolGroup.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using PSI.BLL;
using PSI.Models.DModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinPSI.SM
{
public partial class FrmToolGroup : Form
{
public FrmToolGroup()
{
InitializeComponent();
}
string uName = "";
ToolGroupBLL tgBLL = new ToolGroupBLL();
ToolMenuBLL tmBLL = new ToolMenuBLL();
string oldName = "";
private void FrmToolGroup_Load(object sender, EventArgs e)
{
Action act = () =>
{
if (this.Tag != null)
uName = this.Tag.ToString();
panelInfo.Visible = false;
chkShowDel.Checked = false;
LoadToolGroups();
};
act.TryCatch("工具组列表加载异常!");
}
/// <summary>
/// 加载所有的工具组列表
/// </summary>
private void LoadToolGroups()
{
SetActColsShow(chkShowDel.Checked);
dgvGroups.AutoGenerateColumns = false;
List<ToolGroupInfoModel> list = tgBLL.GetToolGroups(chkShowDel.Checked);
dgvGroups.DataSource = list;
}
private void SetActColsShow(bool blShow)
{
if(blShow)
{
btnDel.Enabled = false;
btnRecover.Enabled = true;
dgvGroups.Columns["Edit"].Visible = false;
dgvGroups.Columns["Delete"].Visible = false;
dgvGroups.Columns["Recover"].Visible = true;
dgvGroups.Columns["Remove"].Visible = true;
}
后面还有 252 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。