コード例 #1
0
        private void EditItemsToggleSwitchUnchecked(object sender, System.Windows.RoutedEventArgs e)
        {
            var TextBoxes = MainGroupBoxGrid.Children
                            .OfType <System.Windows.Controls.TextBox>()
                            .AsEnumerable()
            ;

            var TextEdites = MainGroupBoxGrid.Children
                             .OfType <DevExpress.Xpf.Editors.TextEdit>()
                             .AsEnumerable()
            ;

            var Lables = MainGroupBoxGrid.Children
                         .OfType <System.Windows.Controls.Label>()
                         .AsEnumerable()
            ;

            var Buttons1 = ButtonsGrid.Children
                           .OfType <DevExpress.Xpf.Core.SimpleButton>()
                           .AsEnumerable()
            ;

            var Buttons2 = MemberButtonsGrid.Children
                           .OfType <DevExpress.Xpf.Core.SimpleButton>()
                           .AsEnumerable()
            ;

            foreach (System.Windows.Controls.TextBox textbox in TextBoxes)
            {
                textbox.IsEnabled = false;
            }

            foreach (DevExpress.Xpf.Editors.TextEdit textedit in TextEdites)
            {
                textedit.IsEnabled = false;
            }

            foreach (System.Windows.Controls.Label label in Lables)
            {
                label.IsEnabled = false;
            }

            foreach (DevExpress.Xpf.Core.SimpleButton button in Buttons1)
            {
                button.IsEnabled = true;
            }

            foreach (DevExpress.Xpf.Core.SimpleButton button in Buttons2)
            {
                button.IsEnabled = true;
            }

            GendersCombobox.IsEnabled = false;

            MemberImage.IsEnabled = false;

            MainGroupBoxGrid.BlurApply(5);

            ButtonsGrid.BlurApply(5);
        }
コード例 #2
0
        private void EditItemsToggleSwitchUnchecked(object sender, System.Windows.RoutedEventArgs e)
        {
            AcceptButton.IsEnabled = false;
            CancelButton.IsEnabled = false;
            DeleteButton.IsEnabled = false;

            PasswordChangeToggleSwitch.IsChecked = false;

            EmailAddressLabel.IsEnabled   = false;
            FirstNameLabel.IsEnabled      = false;
            LastNameLabel.IsEnabled       = false;
            UsernameLabel.IsEnabled       = false;
            UserTypeLabel.IsEnabled       = false;
            PasswordChangeLabel.IsEnabled = false;

            EmailAddressTextBox.IsEnabled        = false;
            FirstNameTextBox.IsEnabled           = false;
            LastNameTextBox.IsEnabled            = false;
            UsernameTextBox.IsEnabled            = false;
            UserTypeComboBox.IsEnabled           = false;
            PasswordChangeToggleSwitch.IsEnabled = false;

            MainGroupBoxGrid.BlurApply(5);
            ButtonsGrid.BlurApply(5);
        }
コード例 #3
0
        private void UserControlLoaded(object sender, System.Windows.RoutedEventArgs e)
        {
            MainGroupBoxGrid.BlurApply(5);

            ButtonsGrid.BlurApply(5);

            EditItemsToggleSwitch.IsChecked = false;

            LoadGridControl();
        }
コード例 #4
0
        public UsersManagementUserControl()
        {
            InitializeComponent();

            UserTypeComboBox.ItemsSource = Infrastructure.UserType.UserTypesList;

            EditItemsToggleSwitch.IsChecked = false;

            PasswordChangeToggleSwitch.IsChecked = false;

            MainGroupBoxGrid.BlurApply(5);

            ButtonsGrid.BlurApply(5);

            RefreshGridControl();
        }