Ejemplo n.º 1
0
        private async void CountrySelected(object sender, EventArgs e)
        {
            Frame frame = (Frame)sender;

            if (frame.ClassId == "1")
            {
                FrancePicker.ItemsSource      = MajorsList.GetList(1);
                CountryMoroc.BackgroundColor  = Color.Transparent;
                CountryFrance.BackgroundColor = Color.LightGray;
                StackMorocoPicker.IsVisible   = false;
                StackFrancePicker.IsVisible   = true;
                // //
                //
                // //
                StackSimulationPicker.IsVisible = false;
                ButtonValider.IsVisible         = false;
            }
            else if (frame.ClassId == "2")
            {
                MorocoPicker.ItemsSource = new List <string>()
                {
                    "Calcul Direct Moyennes",
                    "Saisir Notes Examen Bac"
                };
                CountryFrance.BackgroundColor = Color.Transparent;
                CountryMoroc.BackgroundColor  = Color.LightGray;
                StackFrancePicker.IsVisible   = false;
                StackMorocoPicker.IsVisible   = true;
                // //
                //
                // //
                ButtonValider.IsVisible = false;
            }
            lastCountrySelected = Convert.ToInt32(frame.ClassId);
        }
Ejemplo n.º 2
0
 private void MorocPicker_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (MorocoPicker.SelectedIndex == 0)
     {
         StackSimulationPicker.IsVisible = false;
         ButtonValider.IsVisible         = true;
     }
     else if (MorocoPicker.SelectedIndex == 1)
     {
         ButtonValider.IsVisible         = false;
         SimulationPicker.ItemsSource    = MajorsList.GetList(2);
         StackSimulationPicker.IsVisible = true;
     }
 }