Beispiel #1
0
        private Timer timer; //used to periodically check door staus

        #endregion Fields

        #region Constructors

        public LaserSynrad(Form parent)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            this.parent = parent;
            this.parent.Move += new EventHandler(ParentMoved);

            this.synrad = new SynMhAtx();
            this.nextIndex = 0;
            this.drawing = new Hashtable();
            this.connected = false;
            this.doorStatus = LaserHardwareDoorStatus.Unknown;
            this.timer = new Timer();
            this.timer.Interval = 250;
            this.timer.Stop();
            this.timer.Tick += new EventHandler(Timer_Tick);

            LaserMarker.Instance.StateChanged += new EventHandler(MarkerStateChanged);
        }
Beispiel #2
0
 public LaserSynrad(PictureBox previewBox)
 {
     this.synrad = new SynMhAtx();
     synrad.ConnectPreviewWnd(0, previewBox.Handle.ToInt32());
 }