コード例 #1
0
        public FlagPage()
        {
            InitializeComponent();
            hasNetwork = Microsoft.Phone.Net.NetworkInformation.DeviceNetworkInformation.IsNetworkAvailable;
            photoToSerial = new byte[0];
            //Network Manager
            nc = new NetworkCoop();
            //nc.Wc.DownloadStringCompleted += new System.Net.DownloadStringCompletedEventHandler(Wc_DownloadStringCompleted);

            //Camera
            cct = new PhotoChooserTask();
            cct.ShowCamera = true;
            cct.PixelHeight = 480;
            cct.PixelWidth = 640;
            cct.Completed += new EventHandler<PhotoResult>(cct_Completed);

            //GPS
            gcw = new GeoCoordinateWatcher();
            gcw.StatusChanged += new EventHandler<GeoPositionStatusChangedEventArgs>(gcw_StatusChanged);
            gcw.PositionChanged += new EventHandler<GeoPositionChangedEventArgs<GeoCoordinate>>(gcw_PositionChanged);
            gcw.Start();
        }
コード例 #2
0
        public FlagPage()
        {
            InitializeComponent();
            hasNetwork    = Microsoft.Phone.Net.NetworkInformation.DeviceNetworkInformation.IsNetworkAvailable;
            photoToSerial = new byte[0];
            //Network Manager
            nc = new NetworkCoop();
            //nc.Wc.DownloadStringCompleted += new System.Net.DownloadStringCompletedEventHandler(Wc_DownloadStringCompleted);



            //Camera
            cct             = new PhotoChooserTask();
            cct.ShowCamera  = true;
            cct.PixelHeight = 480;
            cct.PixelWidth  = 640;
            cct.Completed  += new EventHandler <PhotoResult>(cct_Completed);

            //GPS
            gcw = new GeoCoordinateWatcher();
            gcw.StatusChanged   += new EventHandler <GeoPositionStatusChangedEventArgs>(gcw_StatusChanged);
            gcw.PositionChanged += new EventHandler <GeoPositionChangedEventArgs <GeoCoordinate> >(gcw_PositionChanged);
            gcw.Start();
        }