示例#1
0
        //查看某个用户
        private void btUser_Click(object sender, EventArgs e)
        {
            //string userId = btUser.Text.Trim();
            string userId = trial.TrUserId;
            FmUser fmUser = new FmUser(fmMain, userId);

            fmUser.ShowDialog();
        }
示例#2
0
        private void picbox_Click(object sender, EventArgs e)
        {
            PictureBox pic  = sender as PictureBox;
            string     name = pic.Name;

            //弹出修改框
            if (name.Equals("department"))
            {
                FmDepart fm = new FmDepart(service, this);
                if (fm.ShowDialog(this) == DialogResult.OK)
                {
                    //pan 中添加记录
                }
            }

            if (name.Equals("platform"))
            {
                FmPltfm fm = new FmPltfm(service, this);
                if (fm.ShowDialog(this) == DialogResult.OK)
                {
                    //p
                }
            }

            if (name.Equals("product"))
            {
                FmPdct fm = new FmPdct(service, this);
                if (fm.ShowDialog(this) == DialogResult.OK)
                {
                }
            }

            if (name.Equals("team"))
            {
                FmTeam fm = new FmTeam(service, this);
                if (fm.ShowDialog(this) == DialogResult.OK)
                {
                }
            }

            if (name.Equals("user"))
            {
                FmUser fm = new FmUser(service, this);
                if (fm.ShowDialog(this) == DialogResult)
                {
                }
            }
            if (name.Equals("level"))
            {
                FmLevel fm = new FmLevel(service, this);
                if (fm.ShowDialog() == DialogResult)
                {
                }
            }
        }