public MainWindow()
        {
            InitializeComponent();

            notifier = new System.Windows.Forms.NotifyIcon();

            this.contextMenu1 = new System.Windows.Forms.ContextMenuStrip();
            refreshItem = new System.Windows.Forms.ToolStripMenuItem("Refresh");
            correctItem = new System.Windows.Forms.ToolStripMenuItem("Correct Position");
            currentPositionItem = new System.Windows.Forms.ToolStripMenuItem("Current Position");
            exitItem = new System.Windows.Forms.ToolStripMenuItem("Exit");
            this.contextMenu1.Items.AddRange(new System.Windows.Forms.ToolStripMenuItem[] { refreshItem, correctItem, currentPositionItem, exitItem });

            refreshItem.Click += new System.EventHandler(this.refreshItem_Click);
            correctItem.Click += new System.EventHandler(this.correcPositiontItem_Click);
            exitItem.Click += new System.EventHandler(this.exitItem_Click);
            notifier.Icon = MaraudersMap.Properties.Resources.TaskbarIconHigh;
            notifier.Visible = true;
            notifier.Click += new EventHandler(notifyIcon1_Click);
            contextMenu1.LostFocus += (object sender, EventArgs a) => { contextMenu1.Hide(); };
            refreshTimer = new Timer(checkPosition, null, TimeSpan.Zero, TimeSpan.FromMinutes(1));

            InitializeWireless();
        }