Esempio n. 1
0
        public override Grid Load(dynamic f)
        {
            Grid g = base.Load((FantasticTales)f);

            Grid grg = FormCreator.CreateGrid(new Thickness(0, 0, 0, 0));

            grg.Children.Add(FormCreator.CreateCheckBox("CheckFictFantFairyIsIllustrated", "is illustrated", new Thickness(10, 9, 0, 0), f.IsIllustrated));

            GroupBox gr = FormCreator.CreateGroupBox("FictFantFairyTalesGroup", "FairyTales", new Thickness(332, 184, 0, 0), 165, 170);

            gr.Content = grg;

            g.Children.Add(gr);

            GroupBox ftGroupBox           = g.Children.OfType <GroupBox>().First(x => x.Name == "FictFantasticTalesGroup");
            IEnumerable <ComboBox> cbList = ((Grid)ftGroupBox.Content).Children.OfType <ComboBox>();
            ComboBox genreComboBox        = cbList.First(x => x.Name == "ChooseFictFantType");

            genreComboBox.SelectedIndex = 0;

            return(g);
        }