예제 #1
0
 public Form1()
 {
     InitializeComponent();
     MountManager = new EsMountManager();
     ComManager   = new ComManager();
     foreach (string s in System.IO.Ports.SerialPort.GetPortNames())
     {
         cmbBasic2SerialPort.Items.Add(s);
     }
     if (cmbBasic2SerialPort.Items.Count > 0)
     {
         cmbBasic2SerialPort.SelectedIndex = 0;
     }
     cmbBasic2MountType.SelectedIndex = 1;
     ComManager.SsidTimerHit         += ComManager_SsidTimerHit;
     EsEventManager.EsEventRaised    += EsEventManager_EsEventRaised;
     rbDefault.Checked = true;
 }
        //public bool SsIdIsChanging { get; set; }

        public Form1()
        {
            InitializeComponent();
            MountManager = new EsMountManager();
            ComManager   = new ComManager();
            foreach (string s in System.IO.Ports.SerialPort.GetPortNames())
            {
                cmbBasic2SerialPort.Items.Add(s);
            }
            if (cmbBasic2SerialPort.Items.Count > 0)
            {
                cmbBasic2SerialPort.SelectedIndex = 0;
            }
            cmbBasic2MountType.SelectedIndex = 1;
            ComManager.SsidTimerHit         += ComManager_SsidTimerHit;
            EsEventManager.EsEventRaised    += EsEventManager_EsEventRaised;
            rbDefault.Checked  = true;
            SsidTimer          = new System.Timers.Timer(SSID_CHANGING_TIMEOUT);
            SsidTimer.Elapsed += SsidTimer_Elapsed;
            rtbInstructions.LoadFile("COnnection Utility Instructions.rtf");
            cmbDrive.Enabled = false;
        }