public Einstellungen() { InitializeComponent(); string appPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Simple Radio"); csv = new CSVManager(appPath, "radiolist.csv"); table = new DataTable("Inhalt"); table = csv.GetTableFromFile(); //aus radiolist.csv dataGrid1.ItemsSource = table.AsDataView(); }
public MainWindow() { _radio = Player.Instance; _radio.StateChanged += new EventHandler(_radio_Changed); _radio.SongChanged += new EventHandler<SongEventArgs>(_radio_SongChanged); string appPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Simple Radio"); csvFile = new CSVManager(appPath, "radiolist.csv"); InitializeComponent(); PlaylistLaden(); Update(); NewSelection(); }