private void OnProfilSelected(object newSelection)
 {
     if (newSelection == null)
     {
         return;
     }
     Kernel.Domain.Profil profil = (Kernel.Domain.Profil)newSelection;
     if (profil.oid == null || !profil.oid.HasValue)
     {
         Search();
     }
     else
     {
         FilterByGroup(profil.oid.Value);
     }
 }
Example #2
0
        public override bool Equals(object obj)
        {
            if (base.Equals(obj))
            {
                return(true);
            }

            if (obj is Kernel.Domain.Profil)
            {
                Kernel.Domain.Profil objm = (Kernel.Domain.Profil)obj;
                if (objm.oid.HasValue && this.oid.HasValue)
                {
                    if (objm.oid == this.oid)
                    {
                        return(true);
                    }
                }
                if (objm.name != null && objm.name.Equals(this.name))
                {
                    return(true);
                }
            }
            return(false);
        }