예제 #1
0
        protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
        {
            if (this.Value != textEditWidget.Text)
            {
                textEditWidget.Text = this.Value;
            }

            base.OnValueChanged(fieldChangedEventArgs);
        }
        protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
        {
            if (this.Value != dropDownList.SelectedValue)
            {
                dropDownList.SelectedValue = this.Value;
            }

            base.OnValueChanged(fieldChangedEventArgs);
        }
예제 #3
0
        protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
        {
            var segments = this.Value.Split(',');

            for (int i = 0; i < childFields.Count; i++)
            {
                string fieldValue = (i < segments.Length) ? segments[i]?.Replace('x', ',') : null;
                childFields[i].SetValue(fieldValue ?? "0,0", userInitiated: false);
            }

            base.OnValueChanged(fieldChangedEventArgs);
        }
예제 #4
0
        protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
        {
            string[] xyValueStrings2 = this.Value.Split(',');
            if (xyValueStrings2.Length != 2)
            {
                xyValueStrings2 = new string[] { "0", "0" };
            }

            double.TryParse(xyValueStrings2[0], out double currentValue);
            xEditWidget.ActuallNumberEdit.Value = currentValue;

            double.TryParse(xyValueStrings2[1], out currentValue);
            yEditWidget.ActuallNumberEdit.Value = currentValue;

            base.OnValueChanged(fieldChangedEventArgs);
        }
예제 #5
0
 protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
 {
     dropdownList.SelectedLabel = this.Value;
     base.OnValueChanged(fieldChangedEventArgs);
 }
예제 #6
0
 protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
 {
     checkBoxWidget.Checked = this.Value == "1";
     base.OnValueChanged(fieldChangedEventArgs);
 }
예제 #7
0
 protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
 {
     numberEdit.ActuallNumberEdit.Value = DoubleValue;
     base.OnValueChanged(fieldChangedEventArgs);
 }
예제 #8
0
 protected virtual void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
 {
     ValueChanged?.Invoke(this, fieldChangedEventArgs);
 }
예제 #9
0
        protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
        {
            colorWidget.Color = new Color(this.Value);

            base.OnValueChanged(fieldChangedEventArgs);
        }