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 }
private static void Main(string[] args) { var myLocation = new CLocation(); myLocation.GetLocationEvent(args.Length > 0); Console.WriteLine("Enter any key to quit."); Console.ReadLine(); }
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; }
public static void getLocation(int sessionID) { CLocation myLocation = new CLocation(); myLocation.GetLocationEvent(sessionID); }