Ejemplo n.º 1
0
        public override int Add()
        {
            FormAddRole form = new FormAddRole(null);

            form.RefreshData += form_RefreshData;
            form.ShowDialog();

            return(base.Add());
        }
Ejemplo n.º 2
0
        public override int Modify()
        {
            if (treeViewRoles.SelectedNode == null)
            {
                MessageBox.Show("请选择需要修改的权限名称");
                return(0);
            }

            FishEntity.RoleEntity role = treeViewRoles.SelectedNode.Tag as FishEntity.RoleEntity;
            if (role == null)
            {
                return(0);
            }

            FormAddRole form = new FormAddRole(role);

            form.RefreshData += form_RefreshData;
            form.ShowDialog();
            return(base.Modify());
        }