コード例 #1
0
        public override IReportElement Clone(string name)
        {
            FieldBoolean clone = new FieldBoolean(name, false);

            clone.SetData(this.data);

            return(clone);
        }
コード例 #2
0
        //--construction--//
        public FieldRadio(string name, string[] options, string description = "") : base(name)
        {
            this.options     = options;
            this.description = description;

            for (int i = 0; i < options.Length; i++)
            {
                FieldBoolean radioButton = new FieldBoolean("option" + i, false);
                radioButton.onDataChanged += this.DataChangedHandler;
                this.AddElementInternal(radioButton);
            }
            selected = -1;
        }