Esempio n. 1
0
 public FormAdd(int i, ListOfChildren s, Dictionary <string, string> d)
 {
     InitializeComponent();
     index    = i;
     saveList = s;
     language = d;
 }
Esempio n. 2
0
 public FormEdit(int c, ListOfChildren l, Dictionary <string, string> d)
 {
     InitializeComponent();
     index    = c;
     editList = l;
     language = d;
 }
 public DietSpecificForChild(int i, ListOfChildren lc, ListOfMeals lm, Dictionary <string, string> d)
 {
     InitializeComponent();
     index    = i;
     listC    = lc;
     listM    = lm;
     language = d;
 }
Esempio n. 4
0
        //insert new child in list and save this
        public void SetListWithNewChild(Child c, ListOfChildren list)
        {
            List <Child> children = list.GetList();

            children.Add(c);
            list.SetList(children);
            list.SaveListOfChildren();
        }
Esempio n. 5
0
 public ShowChild(int i, ListOfChildren lc, ListOfMeals lm, Dictionary <string, string> d)
 {
     InitializeComponent();
     index        = i;
     listChildren = lc;
     listMeals    = lm;
     meal         = new FoodSelection(lc, lm);
     listOfChild  = list.GetInformationOfAChild(index + 1);
     language     = d;
 }
Esempio n. 6
0
        public RemoveChild(int index, ListOfChildren list)
        {
            list.listChildren.RemoveAt(index);
            List <Child> children = list.GetList();

            foreach (Child i in children)
            {
                if (i.GetCod() > index + 1)
                {
                    i.SetCod(i.GetCod() - 1);
                }
            }

            list.SaveListOfChildren();
        }
Esempio n. 7
0
 public FoodSelection(ListOfChildren lc, ListOfMeals lm)
 {
     listC = lc;
     listM = lm;
 }
Esempio n. 8
0
 public ListOfChildren ModList(ListOfChildren listChild)
 {
     return(listChild);
 }
Esempio n. 9
0
 public ModifyChild(ListOfChildren l)
 {
     listChildren = l.GetList();
     list         = l;
 }