Exemplo n.º 1
0
 //修改用户
 private void tsmtUserChange_Click(object sender, EventArgs e)
 {
     userFrm puserFrom = new userFrm();
     puserFrom.Text="修改用户";
     puserFrom.ID = ID_m;
     puserFrom.ShowDialog();
     RefreshTree("userinfo", "DISTINCT province", "用户列表", "username ,userid", "where province='", "userid");
 }
Exemplo n.º 2
0
        //添加用户
        private void tsmtUserCreate_Click(object sender, EventArgs e)
        {
            userFrm puserFrom = new userFrm();

            puserFrom.Text = "添加用户";
            puserFrom.ShowDialog();
            RefreshTree("userinfo", "DISTINCT province", "用户列表", "username ,userid", "where province='", "userid");
        }
Exemplo n.º 3
0
        //用户添加按钮
        private void btnUseradd_Click(object sender, EventArgs e)
        {
            userFrm puserFrom = new userFrm();

            puserFrom.Text     = "添加用户";
            puserFrom.UserName = cmbUser.Text.Trim();
            puserFrom.ShowDialog();
            if (puserFrom.State)
            {
                cmbUser.AutoCompleteCustomSource = getSuggestSource("userinfo", "username", cmbUser);
            }
        }
 //用户添加按钮
 private void btnUseradd_Click(object sender, EventArgs e)
 {
     userFrm puserFrom = new userFrm();
     puserFrom.Text = "添加用户";
     puserFrom.UserName = cmbUser.Text.Trim(); 
     puserFrom.ShowDialog();
     if(puserFrom.State)
     cmbUser.AutoCompleteCustomSource = getSuggestSource("userinfo", "username", cmbUser);
 }