Ejemplo n.º 1
0
        private void listViewPeopleGroup_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            PersonGroups personGroup = (PersonGroups)listViewPeopleGroup.SelectedItem;

            globals.gPersonGroupSelected = personGroup;
            globals.gPersonSelected      = null;
        }
        private void peopleListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            this.IsEnabled = false;
            personGroupProgressRing.IsActive        = true;
            appbarEditPersonGroupButton.IsEnabled   = true;
            appbarDeletePersonGroupButton.IsEnabled = true;
            appbarPersonGroupNextButton.IsEnabled   = true;

            PersonGroups personGroup = (PersonGroups)personGroupListView.SelectedItem;

            txtPersonGroup.Text        = (null == personGroup) ? "" : personGroup.name;
            txtPersonGroupContext.Text = (null == personGroup) ? "" : personGroup.userData;

            personGroupProgressRing.IsActive = false;
            this.IsEnabled = true;

            globals.gPersonGroupSelected = personGroup;
            globals.gPersonSelected      = null;
        }