Ejemplo n.º 1
0
        public override void InitControl(PDFFormField formField)
        {
            base.InitControl(formField);

            PDFRadioButton radioButton = _pdfRadioButton;

            radioButton.GroupName = formField.GroupId.ToString();

            radioButton.Checked = formField.State == PDFFormField.StateSelected ? true : false;
        }
Ejemplo n.º 2
0
        public override void SetContextMenuStrip()
        {
            base.SetContextMenuStrip();

            if (FormFieldControl.FormFieldsContextMenu != null)
            {
                PDFRadioButton radioButton = _pdfRadioButton;
                radioButton.Tag = this;

                radioButton.ContextMenuStrip = FormFieldControl.FormFieldsContextMenu;
            }
        }
Ejemplo n.º 3
0
        public override void UpdateFormField(PDFFormField formField)
        {
            base.UpdateFormField(formField);

            PDFRadioButton radioButton = _pdfRadioButton;

            if (radioButton.Checked == true)
            {
                formField.State = PDFFormField.StateSelected;
            }
            else
            {
                formField.State = PDFFormField.StateNotSelected;
            }
        }
Ejemplo n.º 4
0
 public RadioFormField()
 {
     _pdfRadioButton = new PDFRadioButton();
     this.SetChildControl(_pdfRadioButton);
 }