Exemple #1
0
        private void buttonTestFP_Click(object sender, EventArgs e)
        {
            FpListItem li = listBoxAvailable.SelectedItem as FpListItem;

            if (null != li)
            {
                li.FrontPanel.Test();
            }
        }
Exemple #2
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            FpListItem fpi = listBoxAvailable.SelectedItem as FpListItem;

            if (null != fpi)
            {
                listBoxAvailable.Enabled = false;
                buttonStop.Enabled       = true;
                buttonStart.Enabled      = false;
                buttonResetFP.Enabled    = false;
                fpe            = new FrontPanelExerciser();
                fpe.FrontPanel = fpi.FrontPanel;
                fpe.Run();
                buttonK3.Enabled    = true;
                buttonTS590.Enabled = true;
            }
        }
Exemple #3
0
        private void buttonReload_Click(object sender, EventArgs e)
        {
            emptyLists();
            Update();
            finder = new RadioPanelUsb.Finder();

            System.Collections.Generic.List <RadioPanelUsb.FrontPanel> panels =
                finder.listDevices();

            foreach (RadioPanelUsb.FrontPanel fp in panels)
            {
                FpListItem fpi = new FpListItem(fp);
                listBoxAvailable.Items.Add(fpi);
            }

            System.Collections.Generic.List <RadioPanelUsb.FT232H> ft232s =
                finder.listFT232HDevices();

            foreach (RadioPanelUsb.FT232H fp in ft232s)
            {
                FT232HListItem fpi = new FT232HListItem(fp);
                listBoxFT232H.Items.Add(fpi);
            }
        }