示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            CLocation.GetLocationEvent();
            CLocation.MainWin = this;
            LocationConverter locConverter = new LocationConverter();

            //set default parameters
            global.DomainName = "auth.hpicorp.net";
            string x = System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties().DomainName;

            geoIp2.Text = x;
            Visibility  = Visibility.Hidden;

            global.Locations = new LocationCollection()
            {
                new Location(29.991445, -95.585568),
                new Location(29.991389, -95.580096),
                new Location(29.988248, -95.579860),
                new Location(29.987988, -95.585375)
            };

            /// Immmediately start the Check window
            /// Don't show this window
            /// This window is unnecessary
        }
示例#2
0
        private static void Main(string[] args)
        {
            var myLocation = new CLocation();

            myLocation.GetLocationEvent(args.Length > 0);
            Console.WriteLine("Enter any key to quit.");
            Console.ReadLine();
        }
示例#3
0
        static void Main(string[] args)
        {
            CLocation myLocation = new CLocation();

            myLocation.GetLocationEvent();
            Console.WriteLine("Enter any key to quit.");
            Console.ReadLine();
        }
    public Registration()
    {
        InitializeComponent();
        WindowStartupLocation = WindowStartupLocation.CenterScreen;
        InitializeComponent();
        CLocation myLocation = new CLocation();

        myLocation.OnPositionChanged += new EventHandler <PositionEventArgs>(myLocation_OnPositionChanged);
        myLocation.GetLocationEvent();
    }
        public MainWindow()
        {
            InitializeComponent();
            AddStates();
            AddColumnsToGrid();
            AddColumnsToFriendsGrid();
            AddColumnsToFriendsTipsGrid();
            addDays();
            addTimes();
            addSorts();
            addRatings();
            SearchButton.Background = Brushes.LightGray;

            myLocation = new CLocation();
            myLocation.GetLocationEvent();
            Console.WriteLine("Enter any key to quit.");
            Console.ReadLine();
            checkinButton.IsEnabled            = false;
            showReviewsButton.IsEnabled        = false;
            numberOfBusinessesButton.IsEnabled = false;
            showCheckinsButton.IsEnabled       = false;
            addReviewButton.IsEnabled          = false;
            SearchButton.IsEnabled             = false;
        }
示例#6
0
        public static void getLocation(int sessionID)
        {
            CLocation myLocation = new CLocation();

            myLocation.GetLocationEvent(sessionID);
        }