// Code to execute when the application is activated (brought to foreground) // This code will not execute when the application is first launched private void Application_Activated(object sender, ActivatedEventArgs e) { IDictionary<string, object> state = PhoneApplicationService.Current.State; if (state.ContainsKey("session")) { this.selectedSession = (Session)state["session"]; } }
private IEnumerable<Session> buildInputSessions() { var first = new Session() { time = "9:00 AM - 10:30 AM" }; var second = new Session() { time = "10:30 AM - 11:00 AM" }; var third = new Session() { time = "11:00 AM - 12:30 PM" }; var fourth = new Session() { time = "12:30 PM - 1:30 PM" }; var last = new Session() { time = "1:30 PM - 3:00 PM" }; return new List<Session> { first,second,third,fourth,last }; }