Ejemplo n.º 1
0
 public FormAdd(int i, ListOfChildren s, Dictionary <string, string> d)
 {
     InitializeComponent();
     index    = i;
     saveList = s;
     language = d;
 }
Ejemplo 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;
 }
Ejemplo 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();
        }
Ejemplo 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;
 }
Ejemplo 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();
        }
Ejemplo n.º 7
0
 public FoodSelection(ListOfChildren lc, ListOfMeals lm)
 {
     listC = lc;
     listM = lm;
 }
Ejemplo n.º 8
0
 public ListOfChildren ModList(ListOfChildren listChild)
 {
     return(listChild);
 }
Ejemplo n.º 9
0
 public ModifyChild(ListOfChildren l)
 {
     listChildren = l.GetList();
     list         = l;
 }