private void LoadConsumables() { if (!File.Exists(filePathFood)) { return; } var conten = File.ReadAllText(filePathFood, Encoding.UTF8); var list = JsonConvert.DeserializeObject <List <ConsumableViewModel> >(conten); Consumables.Clear(); Consumables.AddRange(list); }