Ejemplo n.º 1
0
        public ChannelData LoadChannelData()
        {
            ChannelData channelData;
            var         serializer = new XmlSerializer(typeof(ChannelData));

            using (var stream = File.OpenRead("Channels.xml"))
            {
                channelData = (ChannelData)serializer.Deserialize(stream);
            }
            return(channelData);
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            dabRadioGraph = new DabRadioGraph();
            controller = dabRadioGraph.RadioControl;
            
            channelData = LoadChannelData();
            foreach (var plan in channelData.FrequencyPlans)
                areaDropDown.Items.Add(plan.Name);

            areaDropDown.SelectedIndexChanged += areaDropDown_SelectedIndexChanged;
            bandDropDown.SelectedIndexChanged += bandDropDown_SelectedIndexChanged;
            serviceList.SelectedValueChanged += serviceList_SelectedValueChanged;
        }
Ejemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();
            dabRadioGraph = new DabRadioGraph();
            controller    = dabRadioGraph.RadioControl;

            channelData = LoadChannelData();
            foreach (var plan in channelData.FrequencyPlans)
            {
                areaDropDown.Items.Add(plan.Name);
            }

            areaDropDown.SelectedIndexChanged += areaDropDown_SelectedIndexChanged;
            bandDropDown.SelectedIndexChanged += bandDropDown_SelectedIndexChanged;
            serviceList.SelectedValueChanged  += serviceList_SelectedValueChanged;
        }
Ejemplo n.º 4
0
 public ChannelData LoadChannelData()
 {
     ChannelData channelData;
     var serializer = new XmlSerializer(typeof(ChannelData));
     using (var stream = File.OpenRead("Channels.xml"))
     {
         channelData = (ChannelData) serializer.Deserialize(stream);
     }
     return channelData;
 }