Пример #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();
        }
Пример #2
0
 private void connectDeviceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     focuserUser.ConnectDevice();
 }