Exemplo n.º 1
0
        protected override void OnAddClick(EventArgs e)
        {
            UCGroupEditor edit = new UCGroupEditor {
                DbOperaType = TmoCommon.DBOperateType.Add, Title = "添加群组"
            };

            if (edit.ShowDialog() == DialogResult.OK)
            {
                GetData();
            }
            edit.Dispose();
        }
Exemplo n.º 2
0
        protected override void OnEditClick(DataRow selectedRow)
        {
            string        group_id = selectedRow[PrimaryKey].ToString();
            UCGroupEditor edit     = new UCGroupEditor {
                DbOperaType = TmoCommon.DBOperateType.Update, Title = "编辑群组信息", PrimaryKeyValue = group_id
            };

            if (edit.ShowDialog() == DialogResult.OK)
            {
                GetData();
            }
            edit.Dispose();
        }