void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Book b = e.AddedItems[0] as Book;

            if (b != null)
            {
                MXPhoneContainer.Navigate(this, string.Format("{0}/{1}", b.CategoryEncoded, b.ISBN));
            }
        }
Пример #2
0
        void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.AddedItems.Count != 1)
            {
                return;
            }

            Customer c = e.AddedItems[0] as Customer;

            listBox.SelectedIndex = -1;

            MXPhoneContainer.Navigate(this, "Customers/" + c.ID);
        }
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("Application_Launching");

            MXPhoneContainer.Navigate(null, MXContainer.Instance.App.NavigateOnLoad);
        }
Пример #4
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     MXPhoneContainer.Navigate(null, MXContainer.Instance.App.NavigateOnLoad);
 }
Пример #5
0
        void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Category c = e.AddedItems[0] as Category;

            MXPhoneContainer.Navigate(this, c.ListNameEncoded);
        }