Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Application_Launching(object sender, LaunchingEventArgs e)
- {
- IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
- List<MyConnection.locationList.locations> source = new List<MyConnection.locationList.locations>();
- if (!settings.Contains("firstrun"))
- {
- source.Add(new MyConnection.locationList.locations("Dulles, VA"));
- source.Add(new MyConnection.locationList.locations("Dulles, VA (Q)"));
- }
- }
- public locationList()
- {
- InitializeComponent();
- List<locationSelectorClass.locationChoice<locations>> DataSource = locationSelectorClass.locationChoice<locations>.CreateGroups(source,
- System.Threading.Thread.CurrentThread.CurrentUICulture,
- (locations s) => { return s.LastName; }, true);
- }
- public class locations
- {
- public string locName
- {
- get;
- set;
- }
- public locations(string locName)
- {
- this.locName = locName;
- }
- }
- List<MyConnection.locationList.locations> source;
- private void Application_Launching(object sender, LaunchingEventArgs e)
- {
- IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
- source = new List<MyConnection.locationList.locations>();
- if (!settings.Contains("firstrun"))
- {
- source.Add(new MyConnection.locationList.locations("Dulles, VA"));
- source.Add(new MyConnection.locationList.locations("Dulles, VA (Q)"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement