Пример #1
0
        private void VariantPanel_Loaded(object sender, RoutedEventArgs e)
        {
            InitHarness();

            if (_textBox == null)
            {
                _textBox         = new TextBoxEx();
                _textBox.FieldId = this.FieldId;
                this.Children.Add(_textBox);
            }

            if (_checkBox == null)
            {
                _checkBox         = new CheckBoxEx();
                _checkBox.FieldId = this.FieldId;
                this.Children.Add(_checkBox);
            }

            if (_comboBox == null)
            {
                _comboBox         = new ComboBoxEx();
                _comboBox.FieldId = this.FieldId;
                this.Children.Add(_comboBox);
            }

            if (_radioButtonPanel == null)
            {
                _radioButtonPanel         = new RadioButtonPanel();
                _radioButtonPanel.FieldId = this.FieldId;
                this.Children.Add(_radioButtonPanel);
            }
        }
        private void VariantPanel_Loaded(object sender, RoutedEventArgs e)
        {
            InitHarness();

            if (_textBox == null)
            {
                _textBox = new TextBoxEx();
                _textBox.FieldId = this.FieldId;
                this.Children.Add(_textBox);
            }

            if (_checkBox == null)
            {
                _checkBox = new CheckBoxEx();
                _checkBox.FieldId = this.FieldId;
                this.Children.Add(_checkBox);
            }

            if (_comboBox == null)
            {
                _comboBox = new ComboBoxEx();
                _comboBox.FieldId = this.FieldId;
                this.Children.Add(_comboBox);
            }

            if (_radioButtonPanel == null)
            {
                _radioButtonPanel = new RadioButtonPanel();
                _radioButtonPanel.FieldId = this.FieldId;
                this.Children.Add(_radioButtonPanel);
            }
        }