Exemplo n.º 1
0
 private void btnGoTo_Click(object sender, EventArgs e)
 {
     try
     {
         if (cbNewPos.SelectedIndex == -1)
         {
             fFocuser.Goto(Convert.ToInt64(cbNewPos.Text));
         }
         else
         {
             String str = (cbNewPos.Text.Remove(cbNewPos.Text.IndexOf(')'))).Remove(0, cbNewPos.Text.IndexOf('(') + 1);
             fFocuser.Goto(Convert.ToInt64(str));
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 2
0
        public void Move(int pos)
        {
            tl.LogMessage("Move", pos.ToString());
            fFocuser.Goto(pos);
//            focuserPosition = Position; // Set the focuser position
        }