Beispiel #1
0
        public Adding()
        {
            InitializeComponent();
            bl = BL.FactoryBL.GetBL();
            s  = new BE.Synagogue();

            this.NosahcomboBox.ItemsSource = Enum.GetValues(typeof(BE.Nosah));
        }
Beispiel #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string id = value as string;

            if (id == null)
            {
                return(0);
            }
            var item = new BL.BLImp(((App)Application.Current).Currents.LoggedUser).GetAllItems().Where(x => x.Id == id).FirstOrDefault();

            return(item == null ? 0 : item.Price);
        }