Example #1
0
        /* In this constructor the first thing that happens is setting the
         * application object that was passed from the previous page equal to
         * the application object declared in this class.
         * The InitializeComponent() method is required to load any UI page.
         * The 7 lines of code after the InitializeComponent call are all
         * used to set up the information that will be displayed in the Picker
         * objects in the UI. Data binding is used to connect the
         * ObservableCollection<string> objects to the Picker objects in the UI.
         */
        public Step3(StudentApp Application)
        {
            this.Application = Application;
            InitializeComponent();
            ObservableCollection <string> Types = new ObservableCollection <string>
            {
                "Home",
                "Cell",
                "Other"
            };

            PhoneTypePicker.ItemsSource = Types;
        }
Example #2
0
        public Step2(StudentApp Application)
        {
            /* In this constructor the first thing that happens is setting the
             * application object that was passed from the previous page equal to
             * the application object declared in this class.
             * The InitializeComponent() method is required to load any UI page.
             * The 4 lines of code after the InitializeComponent call are all
             * used to set up the information that will be displayed in the Picker
             * objects in the UI. Data binding is used to connect the
             * ObservableCollection<string> objects to the Picker objects in the UI.
             */
            this.Application = Application;
            InitializeComponent();
            ObservableCollection <string> StateAbv = BuildStatesList();
            ObservableCollection <string> Grade    = BuildGradeList();

            GradePicker.ItemsSource = Grade;
            StatePicker.ItemsSource = StateAbv;
        }
Example #3
0
 public Step4(StudentApp Application)
 {
     this.Application = Application;
     InitializeComponent();
 }