Ejemplo n.º 1
0
        private void DtBike_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (dtBike.SelectedItem != null)
            {
                popupBike.IsOpen = false;
                var    row      = (V_Product_V)dtBike.SelectedItem;
                double?avgPoint = 0;
                var    ID       = row.ProductID;
                var    image    = services.Image(ID);
                ImgBike.Source = image;

                avgPoint = users.AVgPointForProduct(row.ProductID);

                if (avgPoint != 0)
                {
                    lblAvgPoint.Content = "Ürünün Ortalama Puanı : " + avgPoint.ToString() + "";
                }
                else
                {
                    lblAvgPoint.Content = "Ürün hakkında puanlama yapılmamış";
                }
                popupBike.IsOpen = true;
            }
        }