public override void OnComponentChanged(object sender, ComponentChangedEventArgs e)
 {
     if ((e.Member == null) || e.Member.Name.Equals("RoleGroups"))
     {
         int num = this._loginView.RoleGroups.Count + 2;
         if (this.CurrentView >= num)
         {
             this.CurrentView = num - 1;
         }
         this._templateGroups = null;
     }
     base.OnComponentChanged(sender, e);
 }
        private void EditRoleGroups()
        {
            PropertyDescriptor context = TypeDescriptor.GetProperties(base.Component)["RoleGroups"];

            ControlDesigner.InvokeTransactedChange(base.Component, new TransactedChangeCallback(this.EditRoleGroupsChangeCallback), context, System.Design.SR.GetString("LoginView_EditRoleGroupsTransactionDescription"), context);
            int num = this._loginView.RoleGroups.Count + 2;

            if (this.CurrentView >= num)
            {
                this.CurrentView = num - 1;
            }
            if (this.CurrentView < 0)
            {
                this.CurrentView = 0;
            }
            this._templateGroups = null;
        }
 public void AddRange(TemplateGroupCollection groups)
 {
 }
Example #4
0
 public void AddRange(TemplateGroupCollection groups)
 {
 }