public static void SparaXML(ref List <Ingredient> ingredienslista)
 {
     XMLSerializer <List <Ingredient> > .Save(ingredienslista, "ingredienser.xml");
 }
 public static void SparaXML(ref List <Recept> receptlista)
 {
     XMLSerializer <List <Recept> > .Save(receptlista, "receptbok.xml");
 }
 public static void LaddaXML(out List <Ingredient> ingredienslista)
 {
     ingredienslista = XMLSerializer <List <Ingredient> > .Load("ingredienser.xml");
 }
 public static void LaddaXML(out List <Recept> receptlista)
 {
     receptlista = XMLSerializer <List <Recept> > .Load("receptbok.xml");
 }