Esempio n. 1
0
        private void Main()
        {
            Stack.Background = SettingApp.BackgroundColor;

            List <Formul> forl;

            Stack.Children.Clear();


            using (PhysicsContext db = new PhysicsContext())
            {
                forl = db.Formuls.ToList();
            }

            //flipView.Items.Add(new StackPanel());

            foreach (Formul fr in forl)
            {
                if (fr.addF == 1)
                {
                    Formul formTemp = fr;

                    Stack.Children.Add(addFormyl(formTemp));
                }
            }
        }
Esempio n. 2
0
        private UIElement addFormyl(Formul formTemp)
        {
            FormulCase temp = new FormulCase(formTemp.description, formTemp.uriImage, formTemp.addF, formTemp.Id);

            temp.Margin = new Thickness(0, 5, 0, 0);


            return(temp);
        }