Beispiel #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;
        }
Beispiel #2
0
        public override void SetContextMenuStrip()
        {
            base.SetContextMenuStrip();

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

                radioButton.ContextMenuStrip = FormFieldControl.FormFieldsContextMenu;
            }
        }
Beispiel #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;
            }
        }
Beispiel #4
0
 public RadioFormField()
 {
     _pdfRadioButton = new PDFRadioButton();
     this.SetChildControl(_pdfRadioButton);
 }