Exemple #1
0
        public object Convert(Privilage.Privilages value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //Privilage.Privilages Privilage = (Privilage.Privilages)value;
            if (value != null)
            {
                entity.Brillo.Security Security = new entity.Brillo.Security(App.Names.SalesInvoice);
                return(Security.SpecialSecurity_ReturnsBoolean(value));
            }

            //If no value found, return true. this way software doesn't stop working.
            return(true);
        }
Exemple #2
0
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     // entity.App.Names appname = (entity.App.Names)value;
     entity.Brillo.Security      security   = new entity.Brillo.Security(0);
     entity.Privilage.Privilages Privilages = (entity.Privilage.Privilages)value;
     if (security.SpecialSecurity_ReturnsBoolean(Privilages))
     {
         return(false);
     }
     else
     {
         return(true);
     }
     //throw new NotImplementedException();
 }