Click here to Skip to main content
15,886,724 members
Articles / Mobile Apps

Using the Skyhook Wireless XPS Positioning Service in Managed Code

Rate me:
Please Sign up or sign in to vote.
4.95/5 (15 votes)
20 Jan 2009CPOL28 min read 88.9K   1.4K   57  
Wrapper and sample programs demonstrating the use of the Skyhook Wireless XPS SDK (hybrid position system using GPS, WiFi Positioning, and Celltower positioning)
namespace J2i.Net.FindMe.Controls
{
    partial class MainMenuForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
        private System.Windows.Forms.MainMenu mainMenu1;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.mainMenu1 = new System.Windows.Forms.MainMenu();
            this.miExit = new System.Windows.Forms.MenuItem();
            this.miPositionTest = new System.Windows.Forms.MenuItem();
            this.cmMyLocation = new System.Windows.Forms.Button();
            this.cmdFriendsLocation = new System.Windows.Forms.Button();
            this.cmdContactPermissions = new System.Windows.Forms.Button();
            this.cmdSettings = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.Add(this.miExit);
            this.mainMenu1.MenuItems.Add(this.miPositionTest);
            // 
            // miExit
            // 
            this.miExit.Text = "E&xit";
            this.miExit.Click += new System.EventHandler(this.miExit_Click);
            // 
            // miPositionTest
            // 
            this.miPositionTest.Text = "&Position Test";
            this.miPositionTest.Click += new System.EventHandler(this.miPositionTest_Click);
            // 
            // cmMyLocation
            // 
            this.cmMyLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.cmMyLocation.Location = new System.Drawing.Point(3, 3);
            this.cmMyLocation.Name = "cmMyLocation";
            this.cmMyLocation.Size = new System.Drawing.Size(234, 30);
            this.cmMyLocation.TabIndex = 0;
            this.cmMyLocation.Text = "My Location";
            this.cmMyLocation.Click += new System.EventHandler(this.cmMyLocation_Click);
            // 
            // cmdFriendsLocation
            // 
            this.cmdFriendsLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.cmdFriendsLocation.Location = new System.Drawing.Point(3, 35);
            this.cmdFriendsLocation.Name = "cmdFriendsLocation";
            this.cmdFriendsLocation.Size = new System.Drawing.Size(235, 30);
            this.cmdFriendsLocation.TabIndex = 1;
            this.cmdFriendsLocation.Text = "Friend\'s Locations";
            this.cmdFriendsLocation.Click += new System.EventHandler(this.cmdFriendsLocation_Click);
            // 
            // cmdContactPermissions
            // 
            this.cmdContactPermissions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.cmdContactPermissions.Location = new System.Drawing.Point(3, 67);
            this.cmdContactPermissions.Name = "cmdContactPermissions";
            this.cmdContactPermissions.Size = new System.Drawing.Size(235, 30);
            this.cmdContactPermissions.TabIndex = 2;
            this.cmdContactPermissions.Text = "&Contact Permissions";
            this.cmdContactPermissions.Click += new System.EventHandler(this.cmdContactPermissions_Click);
            // 
            // cmdSettings
            // 
            this.cmdSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.cmdSettings.Location = new System.Drawing.Point(3, 99);
            this.cmdSettings.Name = "cmdSettings";
            this.cmdSettings.Size = new System.Drawing.Size(235, 30);
            this.cmdSettings.TabIndex = 3;
            this.cmdSettings.Text = "&Settings";
            this.cmdSettings.Click += new System.EventHandler(this.cmdSettings_Click);
            // 
            // MainMenuForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.ClientSize = new System.Drawing.Size(240, 188);
            this.Controls.Add(this.cmdSettings);
            this.Controls.Add(this.cmdContactPermissions);
            this.Controls.Add(this.cmdFriendsLocation);
            this.Controls.Add(this.cmMyLocation);
            this.Menu = this.mainMenu1;
            this.Name = "MainMenuForm";
            this.Text = "MainMenuForm";
            this.Load += new System.EventHandler(this.MainMenuForm_Load);
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainMenuForm_Closing);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button cmMyLocation;
        private System.Windows.Forms.Button cmdFriendsLocation;
        private System.Windows.Forms.Button cmdContactPermissions;
        private System.Windows.Forms.Button cmdSettings;
        private System.Windows.Forms.MenuItem miExit;
        private System.Windows.Forms.MenuItem miPositionTest;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I attended Southern Polytechnic State University and earned a Bachelors of Science in Computer Science and later returned to earn a Masters of Science in Software Engineering. I've largely developed solutions that are based on a mix of Microsoft technologies with open source technologies mixed in. I've got an interest in astronomy and you'll see that interest overflow into some of my code project articles from time to time.



Twitter:@j2inet

Instagram: j2inet


Comments and Discussions