Ejemplo n.º 1
0
        public void SaveChannelList()
        {
            List <RadioChannel> channelList = new List <RadioChannel>();

            foreach (RadioChannelViewModel channelVM in Channels)
            {
                channelList.Add(channelVM.Channel);
            }
            RadioChannelListMapper.SerializeRadioChannelList(Path.Combine(SavePathsHelper.PathBase, "RadioChannels.rcs"), channelList);
        }
Ejemplo n.º 2
0
        public void LoadChannels()
        {
            Channels.Clear();
            List <RadioChannel> channelList = RadioChannelListMapper.DeserializeRadioChannelList(Path.Combine(SavePathsHelper.PathBase, "RadioChannels.rcs"));

            foreach (RadioChannel rc in channelList)
            {
                Add(new RadioChannelViewModel(rc));
            }
        }