Exemplo n.º 1
0
        private static void OnCurrentRegionPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            MunicipalityPopup popup      = source as MunicipalityPopup;
            RegionViewModel   animalType = (RegionViewModel)e.NewValue;

            popup.PopulateFromDb("");
        }
Exemplo n.º 2
0
        private static void OnCurrentMunicipalityPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            MunicipalityPopup     popup        = source as MunicipalityPopup;
            MunicipalityViewModel municipality = (MunicipalityViewModel)e.NewValue;

            popup.txtMunicipality.Text = municipality != null ? municipality.MunicipalityCode + " (" + municipality.Name + ")" : "";
        }