Exemple #1
0
        public NewFieldEngine(Addin.Controlling controller, NamedElement namedElement)
        {
            this.controller   = controller;
            this.namedElement = namedElement;

            Enum.TryParse <FieldType>(this.controller.comboBoxFieldType.SelectedValue.ToString(), out fieldType);

            this.fieldName    = this.controller.textBoxFieldName.Text;
            this.edtIndex     = this.controller.comboBoxEDTName.SelectedIndex;
            this.edtText      = this.controller.comboBoxEDTName.Text;
            this.extendsIndex = this.controller.comboBoxExtends.SelectedIndex;
            this.extendsText  = this.controller.comboBoxExtends.Text;
        }
        public NewFieldEngine(Addin.Controlling controller, NamedElement namedElement)
        {
            this.controller   = controller;
            this.namedElement = namedElement;

            Enum.TryParse <FieldType>(this.controller.comboBoxFieldType.SelectedValue.ToString(), out fieldType);

            this.fieldName    = this.controller.textBoxFieldName.Text;
            this.edtText      = this.controller.comboBoxEDTName.Text;
            this.extendsText  = this.controller.comboBoxExtends.Text;
            this.labelText    = this.controller.textBoxLabel.Text;
            this.helpTextText = this.controller.textBoxHelpText.Text;

            int.TryParse(this.controller.textBoxStrLen.Text, out newStrEDTLen);
        }