예제 #1
0
 private void InitPickerBoxDialog()
 {
     customDialog = new PickerBoxDialog {
         ItemsSource = listaCategorias, Title = Texts.TextoCategoriaBusqueda
     };
     customDialog.Unloaded += CustomDialogClosed;
 }
        /// <summary>
        /// KOnstruktor
        /// </summary>
        public CreateOrUpdateFueling()
        {
            InitializeComponent();

            Cars         = new PickerBoxDialog();
            Cars.Title   = "Samochód:";
            Cars.Closed += Engines_Closed;
        }
예제 #3
0
        void dialog_Closed(object sender, EventArgs e)
        {
            PickerBoxDialog dialog   = (PickerBoxDialog)sender;
            var             selected = dialog.SelectedItem;

            var tileType = (TileType)Enum.Parse(typeof(TileType), selected.ToString(), true);

            NavigationService.Navigate(new Uri("/Create.xaml?modelType=" + selected, UriKind.Relative));
        }
예제 #4
0
        private void ApplicationBarIconButton_Click(object sender, EventArgs e)
        {
            var dialog = new PickerBoxDialog();

            // Assign data source and title
            dialog.ItemSource = EnumHelper.GetEnumValues <TileType>();
            dialog.Title      = "ACTION TYPE";
            dialog.Closed    += dialog_Closed;
            dialog.Show();
        }
예제 #5
0
 private void InitMedidaPickerBoxDialog()
 {
     medidaDialog = new PickerBoxDialog {
         ItemsSource = unidadesMedida, Title = Texts.TextoCategoriaAjustes
     };
     if (medidaElegida != null)
     {
         medidaDialog.SelectedIndex = unidadesMedida.IndexOf(medidaElegida);
     }
     medidaDialog.Unloaded += MedidaDialogClosed;
 }
예제 #6
0
 private void InitRangoPickerBoxDialog()
 {
     rangoDialog = new PickerBoxDialog {
         ItemsSource = rangosDistancia, Title = Texts.TextoCategoriaAjustes
     };
     if (rangoElegido != null)
     {
         rangoDialog.SelectedIndex = rangosDistancia.IndexOf(rangoElegido);
     }
     rangoDialog.Unloaded += RangoDialogClosed;
 }
예제 #7
0
        public ObjectListPage()
        {
            InitializeComponent();
            vm          = new SpaceObjectCollection();
            DataContext = vm;

            dialog            = new PickerBoxDialog();
            dialog.ItemSource = new List <String>()
            {
                "All", "Meteor", "Satellite", "Station", "Others"
            };
            dialog.Closed += dialog_Closed;
        }
        /// <summary>
        /// Konstruktor
        /// </summary>
        public CreateOrUpdateCar()
        {
            InitializeComponent();

            Engines = new PickerBoxDialog();
            List <DicItem> engines = new List <DicItem>();

            engines.Add(new DicItem()
            {
                Code = "NO", Value = "Diesel"
            });
            engines.Add(new DicItem()
            {
                Code = "LPG", Value = "Gaz"
            });
            engines.Add(new DicItem()
            {
                Code = "PETROL", Value = "Benzyna"
            });
            Engines.ItemSource = engines;
            Engines.Title      = "Typ silnika:";
            Engines.Closed    += Engines_Closed;
        }