public MainWindow()
        {
            InitializeComponent();

            worker.DoWork += worker_DoWork;

            tmrUpdate = new System.Timers.Timer(100);
            tmrUpdate.Elapsed += tmrUpdate_Elapsed;

            pa = new PacketAnalyze();
        }
        public Calibrate()
        {
            InitializeComponent();
            this.Top = 0;
            this.Left = 0;
            this.Width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
            this.Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;

            pc = new PacketCannon(Convert.ToInt16(Properties.Settings.Default["Port"]));
            pa = new PacketAnalyze();

            worker = new BackgroundWorker();
            worker.DoWork += worker_DoWork;

            lbl.Content = instructions[currentStep];

            worker.RunWorkerAsync();
        }