示例#1
0
        public PomaTest()
        {
            InitializeComponent();
            long id = 0L;
            try { id = long.Parse(txtUsername.Text); }
            catch { };

            session = new DeviceSession();
            txtServiceURL.Text = Operation<object>.SERVICE_URL;
            txtServiceURL.Text = "http://localhost:8080/api/mobile";
            geocodeQueue = new Queue<Geocode>();
        }
示例#2
0
 private void PomaMobile_Load(object sender, EventArgs e)
 {
     //Internet.Init();
     session = new DeviceSession();
     //txtURL.Text = Operation<object>.SERVICE_URL = "http://localhost:8080/api/mobile";
     gps = new Gps();
     gps.DeviceStateChanged += new DeviceStateChangedEventHandler(gps_DeviceStateChanged);
     gps.LocationChanged += new LocationChangedEventHandler(gps_LocationChanged);
     UpdateGpsDataHandler = new EventHandler(UpdateGpsData);
 }