Пример #1
0
        public void AddWasClicked(ToyVm toyToCart)
        {
            // alles gut verlaufen? Dann Info ausgeben:
            StatusVisible = "Visible";

            // um MEssageBar zu zeigen:
            if (toyToCart.Description.Equals("Baby Yoda"))
            {
                StatusImage = "Ok";
                StatusText  = "Good Choice!!";
                timer.Start();
            }
            else
            {
                StatusImage = "Info";
                StatusText  = "New Entry Added";
                timer.Start();
            }
        }
Пример #2
0
 private void AddToWisList(ToyVm obj)
 {
     WishList.Add(obj);
     RaisePropertyChanged("WishList");
 }