コード例 #1
0
        /// <summary>
        /// 点击添加弹出用户添加窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UserAdd add = new UserAdd();

            add.Text = "添加用户";
            add.ShowDialog();
        }
コード例 #2
0
        /// <summary>
        /// 点击弹出修改对话框
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            if (Modules.nUserID.Trim() == "0001")
            {
                MessageBox.Show("不能修改系统管理员账号!");
                return;
            }
            UserAdd update = new UserAdd();

            update.Text = "修改用户";
            update.ShowDialog();
        }