立库管理/WMS_View/View/ModifyRoleView.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using WMS_Database;
using DevExpress.XtraEditors.Controls;
using WMS_Interface;

namespace WMS_Kernel
{
    public partial class ModifyRoleView: DevExpress.XtraEditors.XtraForm,IAddRoleView
    {
        //定义委托
        public delegate void MyDelegate();
        //定义事件
        public event MyDelegate MyEvent;


        public AddRolePresenter presenter = null;
        public UserRole role = null;
        public ModifyRoleView()
        {
            InitializeComponent();
            this.presenter = new AddRolePresenter(this);
        }
        
        #region 实现方法
       
        #endregion

        #region 私有方法

        public void ShowMessage(string title, string content)
        {
            DevExpress.XtraEditors.XtraMessageBox.Show(content, title, MessageBoxButtons.OK, MessageBoxIcon.Information);

        }
        #endregion



        private void sb_Cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }


        private void ModifyRoleView_Load(object sender, EventArgs e)
        {
            this.txtEdit_RoleName.Text = role.RoleName;
            this.txtEdit_RoleLevel.Text = role.RoleLevel.ToString();
            this.txtEdit_RoleDes.Text = role.RoleDesc;
            this.txtEdit_RoleRemark.Text = role.RoleRemark;
        }

后面还有 28 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。