示例#1
0
        public PhotosScreen()
        {
            this.InitializeComponent();
            komentaras.Visibility = Visibility.Collapsed;
            Save.Visibility       = Visibility.Collapsed;
            //Photo.Visibility = Visibility.Collapsed;
            locationCB.Visibility = Visibility.Collapsed;
            lokacija.Visibility   = Visibility.Collapsed;
            makePhoto();
            GPS    gps = new GPS();
            string ip  = gps.GetPublicIP();
            //string ip2 = gps.GetLocalIPAddress();
            //string ip = gps.GetLocalIPv4(NetworkInterfaceType.Ethernet);
            string location = gps.GetUserCountryByIp("188.69.192.58");

            lokacija.Text = location;
        }