Projekt_SS25/Project_Periodensystem.Controller/PeriodensystemController.cs

20 lines
642 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
using Project_Periodensystem.Model;
using Project_Periodensystem.Persistence;
namespace Project_Periodensystem.Controller
{
// Der Controller stellt der View Daten zur Verfügung und verwaltet die Verbindung zur Datenquelle.
public class PeriodensystemController
{
// Öffentliche Liste aller Elemente, die an die View gebunden werden kann
public List<Element> Elements { get; }
// Konstruktor lädt beim Start alle Elemente aus der Persistence
public PeriodensystemController()
{
Elements = PeriodicTableData.Elements;
}
}
}