Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            timerFocUpdateStat.Interval = 100;
            timerFocUpdateStat.Enabled  = true;

            //connect to device driver
            focuserUser = new FocuserUser();
            focuserUser.ConnectDevice();

            //connect to host
            focuserNet             = new FocuserNet(focuserUser);
            focNetThd              = new Thread(new ThreadStart(focuserNet.ConnectToHost));
            focNetThd.IsBackground = true;
            focNetThd.Start();
        }
Beispiel #2
0
 private void connectDeviceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     focuserUser.ConnectDevice();
 }