コード例 #1
0
        protected void CreateControls(QuestionStatement statement, WidgetStyle style)
        {
            var label = new Label {
                Content = statement.Label
            };

            this.Input        = new TextBox();
            this.Input.KeyUp += this.UpdateValue;

            style.Apply(label);
            style.Apply(this.Input);

            this.Controls.Add(label);
            this.Controls.Add(this.Input);
        }
コード例 #2
0
ファイル: CheckBoxWidget.cs プロジェクト: vdweegen/myriad-ql
        private void CreateControls(QuestionStatement statement, WidgetStyle style)
        {
            var label = new Label {
                Content = statement.Label
            };

            this.Input            = new CheckBox();
            this.Input.Checked   += this.UpdateValue;
            this.Input.Unchecked += this.UpdateValue;

            style.Apply(label);
            style.Apply(this.Input);

            this.Controls.Add(label);
            this.Controls.Add(this.Input);
        }
コード例 #3
0
        private void CreateControls(QuestionStatement statement, WidgetStyle style)
        {
            var label = new Label {
                Content = statement.Label
            };

            this.Input = new DatePicker {
                SelectedDateFormat = DatePickerFormat.Short
            };
            this.Input.SelectedDateChanged += this.UpdateValue;

            style.Apply(label);
            style.Apply(this.Input);

            this.Controls.Add(label);
            this.Controls.Add(this.Input);
        }