Maybe it's a so simple question or impossible to do that. I don't know i'm just asking.
i have a class like this :
    namespace Perimeter_Distance
{
    class Station
    {
        public string Name { get; set; }
        public decimal Lng { get; set; }
        public decimal Lat { get; set; }
    }
}
i'm populating class in the mainwindow on wpf :
public partial class MainWindow : Window
    {
        // initializing class with definitions
        List<Station> stations = new List<Station>()
            {   new Station {Name = "01 -- Söğütlüçeşme -- 45",Lat=40.994864M,Lng=29.037337M},
                new Station {Name = "02 -- Fikirtepe -- 44",Lat=40.993824M,Lng=29.047972M},
                new Station {Name = "03 -- Uzunçayır -- 43",Lat=40.998778M, Lng=29.056474M}
            };
My question is am i doing right or can we populate/initialize class in a constructor.
I want all of my voids can access to class in the wpf.
I'm sorry my english is not good enough but i hope i wrote down the problem correctly.