Exemple #1
0
        private static void OnCurrentSectorPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            AgencyPopup     popup  = source as AgencyPopup;
            SectorViewModel sector = (SectorViewModel)e.NewValue;

            popup.PopulateFromDb("");
        }
Exemple #2
0
        private static void OnCurrentAgencyPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            AgencyPopup     popup  = source as AgencyPopup;
            AgencyViewModel agency = (AgencyViewModel)e.NewValue;

            popup.txtAgency.Text = agency != null ? agency.Code + " (" + agency.Name + ")" : "";
        }