示例#1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            WFperson mywin = new WFperson()
            {
                StartPosition = FormStartPosition.CenterParent
            };

            if (mywin.ShowDialog() == DialogResult.OK)
            {
                tb_banlirenyuan.Text = string.Join(",", mywin.list_selected);
            }
        }
示例#2
0
        /// <summary>
        /// 点击可见按钮时触发的事件,保存可见人员
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pb_kejian_Click(object sender, EventArgs e)
        {
            //打开选择人员对话框,需要把当前的可见人员传进去
            List <string> list_person = Regex.Split(_myinfo._kejian, @"\|").ToList();
            WFperson      mywin       = new WFperson(list_person)
            {
                StartPosition = FormStartPosition.CenterParent
            };

            if (mywin.ShowDialog() == DialogResult.OK)
            {
                _myinfo._kejian = string.Join("|", mywin.list_selected);
                //保存这个附件信息
                bool b = UpdateKejian(_myinfo);
                if (b)
                {
                    MessageBox.Show("附件可见人员已保存!");
                }
            }
        }