Ejemplo n.º 1
0
        private async void Window_Loaded(object sender, RoutedEventArgs e)
        {
            roles = await rolesProcessor.GetAll();

            members = await membersProcessor.GetAll();

            OverviewList.ItemsSource   = roles;
            OverviewList.SelectedIndex = 0;

            ModifyPicker.ItemsSource   = roles;
            ModifyPicker.SelectedIndex = 0;

            ConfigurePickerAssignMember.ItemsSource  = members;
            ConfigurePickerAssignRole.ItemsSource    = roles;
            ConfigurePickerRetractMember.ItemsSource = members;
            ConfigurePickerRetractRole.ItemsSource   = roles;

            ConfigurePickerAssignMember.SelectedIndex  = 0;
            ConfigurePickerAssignRole.SelectedIndex    = 0;
            ConfigurePickerRetractMember.SelectedIndex = 0;
            ConfigurePickerRetractRole.SelectedIndex   = 0;

            if (!MembersAvailable())
            {
                AssignConfirm.IsEnabled  = false;
                RetractConfirm.IsEnabled = false;
            }
        }
Ejemplo n.º 2
0
        private async void Window_Loaded(object sender, RoutedEventArgs e)
        {
            members = await membersProcessor.GetAll();

            roles = await rolesProcessor.GetAll();

            FillOverview(members);

            ModifyPicker.ItemsSource = members;
            DeletePicker.ItemsSource = members;

            ModifyPicker.SelectedIndex = 0;
            DeletePicker.SelectedIndex = 0;

            if (MembersAvailable())
            {
                SetModifyMember(members[0]);

                ModifyConfirm.IsEnabled = true;
                DeleteConfirm.IsEnabled = true;
            }
            else
            {
                ModifyConfirm.IsEnabled = false;
                DeleteConfirm.IsEnabled = false;
            }
        }