Ejemplo n.º 1
0
        public MainPage()
        {
            this.InitializeComponent();
            sds = new SampleDataSource();

            for (int i = 1; i <= 3; i++)
            {
                switch (i)
                {
                    case 1: sds.AddGroup(i, "психологические"); break;
                    case 2: sds.AddGroup(i, "логика и IQ"); break;
                    case 3: sds.AddGroup(i, "задачи и загадки"); break;
                    default: sds.AddGroup(i, ""); break;
                }
            }

            cvsMain.Source = sds.grps;
            TypeName.Text = sds.grps[mainFlip.SelectedIndex].GroupName;
            HardwareButtons.BackPressed += HardwareButtons_BackPressed;    
        }
Ejemplo n.º 2
0
        public MainPage()
        {
            this.InitializeComponent();
            sds = new SampleDataSource();

            for (int i = 1; i <= 3; i++)
                sds.AddGroup(i);

            selectedItem = Psych;
            Psych.Foreground = SelectedColor;
            dataGrid.ItemsSource = sds.grps[0].group;
            flipStatic.ItemsSource = sds.grps[0].group;
        }