Esempio n. 1
0
        private void FP_Click(object sender, EventArgs e)
        {
            FrmGroupPeople frm = new FrmGroupPeople();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                GroupPeople_Model GM = frm.GM;
                //if (!GPList.Contains(GM))
                //{
                GPList.Add(GM);
                // }
                GP.GroupPeople_Items = GPList;

                BindGroupUser();
            }
        }
Esempio n. 2
0
        void UG_EditEvent(object sender, EventArgs e)
        {
            UC_GroupUserList UG  = (UC_GroupUserList)sender;
            FrmGroupPeople   frm = new FrmGroupPeople();

            frm.GM = UG.GM;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                UG_DelEvent(sender, e);
                GroupPeople_Model GM = frm.GM;

                GPList.Add(GM);
                GP.GroupPeople_Items = GPList;

                BindGroupUser();
            }
        }