internal ObservableCollection <PizzaInfo> GetPizzaInfo1()
        {
            var categoryInfo = new ObservableCollection <PizzaInfo>();

            for (int i = 0; i < PizzaNames1.Count(); i++)
            {
                var info = new PizzaInfo()
                {
                    PizzaName = PizzaNames1[i]
                };
#if COMMONSB
                if (i == 9)
                {
                    info.PizzaImage = ImageSource.FromResource("SampleBrowser.Icons.Pizza12.jpg", assembly);
                }
                else
                {
                    info.PizzaImage = ImageSource.FromResource("SampleBrowser.Icons.Pizza" + (i + 9) + ".jpg", assembly);
                }
#else
                if (i == 9)
                {
                    info.PizzaImage = ImageSource.FromResource("SampleBrowser.SfListView.Icons.Pizza12.jpg", assembly);
                }
                else
                {
                    info.PizzaImage = ImageSource.FromResource("SampleBrowser.SfListView.Icons.Pizza" + (i + 9) + ".jpg", assembly);
                }
#endif
                categoryInfo.Add(info);
            }
            return(categoryInfo);
        }
        internal ObservableCollection <PizzaInfo> GetPizzaInfo1()
        {
            var categoryInfo = new ObservableCollection <PizzaInfo>();

            for (int i = 0; i < PizzaNames1.Count(); i++)
            {
                var info = new PizzaInfo()
                {
                    PizzaName = PizzaNames1[i]
                };

                if (i == 9)
                {
                    info.PizzaImage = ImageSource.FromResource("SampleBrowser.Icons.ListView.Pizza12.png");
                }
                else
                {
                    info.PizzaImage = ImageSource.FromResource("SampleBrowser.Icons.ListView.Pizza" + (i + 9) + ".png");
                }
                categoryInfo.Add(info);
            }
            return(categoryInfo);
        }
Exemple #3
0
        internal ObservableCollection <PizzaInfo> GetPizzaInfo1()
        {
            var categoryInfo = new ObservableCollection <PizzaInfo>();

            for (int i = 0; i < PizzaNames1.Count(); i++)
            {
                var info = new PizzaInfo()
                {
                    PizzaName = PizzaNames1[i]
                };

                if (i == 9)
                {
                    info.PizzaImage = "Pizza12.jpg";
                }
                else
                {
                    info.PizzaImage = "Pizza" + (i + 9) + ".jpg";
                }

                categoryInfo.Add(info);
            }
            return(categoryInfo);
        }