public MainWindow()
        {
            InitializeComponent();

            CheckedCheckBoxButton.Click += checkedCheckBoxButton_Click;
            ChangedCheckBox.IsChecked    = true;

            CheckedComboBoxButton.Click     += checkedComboBoxButton_Click;
            CheckedEditComboBoxButton.Click += checkedEditComboBoxButton_Click;
            string[] comboBoxValues = { "", "Changed" };
            EmptyComboBox.ItemsSource = comboBoxValues;
            EmptyComboBox.Initialise(selectedIndex: null, isRequired: false);
            RequiredComboBox.ItemsSource = comboBoxValues;
            RequiredComboBox.Initialise(selectedIndex: null, isRequired: true);
            ChangedComboBox.ItemsSource = comboBoxValues;
            ChangedComboBox.Initialise(selectedIndex: null, isRequired: false);
            ChangedComboBox.SelectedIndex = 1;

            EmptyEditComboBox.ItemsSource = comboBoxValues;
            EmptyEditComboBox.Initialise(text: null, selectedIndex: null, isRequired: false);
            RequiredEditComboBox.ItemsSource = comboBoxValues;
            RequiredEditComboBox.Initialise(text: null, selectedIndex: null, isRequired: true);
            ChangedEditComboBox.ItemsSource = comboBoxValues;
            ChangedEditComboBox.Initialise(text: null, selectedIndex: null, isRequired: false);
            ChangedEditComboBox.SelectedIndex = 1;

            CheckedDatePickerButton.Click += checkedDatePickerButton_Click;
            ChangedDatePicker.SelectedDate = DateTime.Now.Date;

            CheckedTextBoxButton.Click += checkedTextBoxButton_Click;
            ChangedTextBox.Text         = "Changed";

            DecimalTextBoxButton.Click += decimalTextBoxButton_Click;
            ChangedDecimalTextBox.Text  = "1.23";

            IntTextBoxButton.Click += intTextBoxButton_Click;
            ChangedIntTextBox.Text  = "123";

            EmailTextBoxButton.Click += emailTextBoxButton_Click;
            ChangedEmailTextBox.Text  = "*****@*****.**";

            PhoneTextBoxButton.Click += phoneTextBoxButton_Click;
            ChangedPhoneTextBox.Text  = "123456789";

            SaveButton.Click += saveButton_Click;
            updateSaveButtonIsEnabled();
        }
        public MainWindow()
        {
            InitializeComponent();

            string[] comboBoxValues = { "", "Changed" };
            EmptyComboBox.ItemsSource = comboBoxValues;
            EmptyComboBox.Initialise(selectedIndex: null, isRequired: false);
            RequiredComboBox.ItemsSource = comboBoxValues;
            RequiredComboBox.Initialise(selectedIndex: null, isRequired: true);
            ChangedComboBox.ItemsSource = comboBoxValues;
            ChangedComboBox.Initialise(selectedIndex: null, isRequired: false);
            ChangedComboBox.SelectedIndex = 1;

            MakeVisibleButton.Click += makeVisibleButton_Click;
            SaveButton.Click        += saveButton_Click;
            updateSaveButtonIsEnabled();
        }