Esempio n. 1
0
 private void DoChangedValueEvent()
 {
     if ((ValueChanged != null) && (ActiveItem != null) && !_haltEvents)
     {
         ValueChanged.Invoke(this, new ItemValueChangedArgs(ActiveItem, ItemFieldName.SpecialPricing));
     }
 }
 private void RaiseValueChangeEvent(TextChangedEventArgs e)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, e as RoutedEventArgs);
     }
 }
Esempio n. 3
0
 private void DoChangedValueEvent(CategoryFieldName field)
 {
     if ((ValueChanged != null) && (ActiveCategory != null) && !_haltEvents)
     {
         ValueChanged.Invoke(this, new CategoryValueChangedArgs(ActiveCategory, field));
     }
 }
Esempio n. 4
0
        private void NUDTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            int number = 0;

            if (NUDTextBox.Text != "")
            {
                if (!int.TryParse(NUDTextBox.Text, out number))
                {
                    NUDTextBox.Text = startvalue.ToString();
                }
            }
            if (number > maxvalue)
            {
                NUDTextBox.Text = maxvalue.ToString();
            }
            if (number < minvalue)
            {
                NUDTextBox.Text = minvalue.ToString();
            }
            NUDTextBox.SelectionStart = NUDTextBox.Text.Length;

            if (ValueChanged != null)
            {
                ValueChanged.Invoke(this, new EventArgs());
            }
        }
Esempio n. 5
0
 private void DoChangedValueEvent(ItemFieldName field)
 {
     if ((ValueChanged != null) && (ActiveItem != null) && !_haltEvents)
     {
         ValueChanged.Invoke(this, new ItemValueChangedArgs(ActiveItem, field));
     }
 }
Esempio n. 6
0
 public void OnValueChanged(SudokuCell Source, int NewValue)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(Source, NewValue);
     }
 }
Esempio n. 7
0
        void Update()
        {
            if (this.visible == false)
            {
                return;
            }

            var pos             = new Vector2(x, y);
            var mousePoint      = new Vector2(Input.mouseX, Input.mouseY);
            var worldMousePoint = TransformPoint(mousePoint.x - pos.x, mousePoint.y - pos.y);

            if (Input.GetMouseButtonDown(0) && HitTestPoint(worldMousePoint.x, worldMousePoint.y))
            {
                var localPoint = InverseTransformPoint(worldMousePoint.x, worldMousePoint.y);

                float posX = Mathf.Clamp(localPoint.x, _thumb.width * 0.5f, width - _thumb.width * 0.5f);

                _thumb.x = posX;

                float lastVal = _value;
                _value = Mathf.Map(posX, _thumb.width * 0.5f, width - _thumb.width * 0.5f, 0, 1);

                if (Math.Abs(lastVal - _value) > 0.001f)
                {
                    _onValueChanged.Invoke(_value);
                }

                Console.WriteLine($"hit {Time.time} | mousepos: {mousePoint} | world: {worldMousePoint} | local: {localPoint} | val: {_value}");
            }

            DrawBoundBox();
        }
 private void DoChangedValueEvent()
 {
     if ((ValueChanged != null) && (ActiveItemOptionSet != null) && !_haltEvents)
     {
         ValueChanged.Invoke(this, new EventArgs());
     }
 }
Esempio n. 9
0
 private void synchronizeValue(object sender, float value)
 {
     if (allowSynchronization)
     {
         allowSynchronization = false;
         if (manipulator != null && sender != manipulator)
         {
             manipulator.Position = value;
         }
         if (sender != valueTrackBar)
         {
             int newVal = (int)(value * valueTrackBar.Maximum);
             if (newVal > valueTrackBar.Maximum)
             {
                 valueTrackBar.Value = valueTrackBar.Maximum;
             }
             else if (newVal < valueTrackBar.Minimum)
             {
                 valueTrackBar.Value = valueTrackBar.Minimum;
             }
             else
             {
                 valueTrackBar.Value = newVal;
             }
         }
         if (ValueChanged != null)
         {
             ValueChanged.Invoke(this, EventArgs.Empty);
         }
         allowSynchronization = true;
     }
 }
Esempio n. 10
0
 void scrollBar_ScrollChangePosition(Widget source, EventArgs e)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, EventArgs.Empty);
     }
 }
Esempio n. 11
0
 ////////////////////////////////////////////////////////////////////////////
 protected virtual void OnValueChanged(TomShane.Neoforce.Controls.EventArgs e)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, e);
     }
 }
Esempio n. 12
0
        private void UpdateUI()
        {
            if (mbSusbendUI == true)
            {
                return;
            }
            mbSusbendUI = true;

            if (MinutesTextBox.Text != mMinutes.ToString())
            {
                MinutesTextBox.Text = mMinutes.ToString();
            }
            if (SecondsTextBox.Text != mSeconds.ToString())
            {
                SecondsTextBox.Text = mSeconds.ToString();
            }
            if (MillisecondsTextBox.Text != mMilliSeconds.ToString())
            {
                MillisecondsTextBox.Text = mMilliSeconds.ToString();
            }

            if (ValueChanged != null)
            {
                ValueChanged.Invoke(this, null);
            }
            mbSusbendUI = false;
        }
Esempio n. 13
0
 protected virtual void OnValueChanged(object oldValue, object newValue)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, EventArgs.Empty);
     }
 }
Esempio n. 14
0
 /// <summary>
 /// Handles the ValueChanged event of the Slider control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 private void OnSliderValueChanged(object sender, ListViewChangedEventArgs e)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, e);
     }
 }
Esempio n. 15
0
 private void DoValueChangedEvent()
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, new EventArgs());
     }
 }
Esempio n. 16
0
 private void OnRowValueChanged(Base control)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(control);
     }
 }
Esempio n. 17
0
 private void DoChangedValueEvent(TaxFieldName field)
 {
     if ((ValueChanged != null) && (ActiveTax != null) && !_haltEvents)
     {
         ValueChanged.Invoke(this, new TaxValueChangedArgs(ActiveTax, field));
     }
 }
Esempio n. 18
0
 protected virtual void DoChanged()
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, EventArgs.Empty);
     }
 }
Esempio n. 19
0
 protected virtual void DoChanged()
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this);
     }
 }
Esempio n. 20
0
 protected virtual void OnValueChanged(Base control, EventArgs args)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, EventArgs.Empty);
     }
 }
 private void DoChangedValueEvent()
 {
     if (!_haltEvent && (ValueChanged != null))
     {
         ValueChanged.Invoke(this, new EventArgs());
     }
 }
Esempio n. 22
0
 private void OnRowValueChanged(ControlBase control, EventArgs args)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(control, EventArgs.Empty);
     }
 }
Esempio n. 23
0
 protected void fireValueChanged()
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this);
     }
 }
 private void DoChangedValueEvent(CouponFieldName field)
 {
     if ((ValueChanged != null) && (ActiveCoupon != null))
     {
         ValueChanged.Invoke(this, new CouponValueChangedArgs(ActiveCoupon, field));
     }
 }
Esempio n. 25
0
 private void fireValueChanged()
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(edit, EventArgs.Empty);
     }
 }
Esempio n. 26
0
        ////////////////////////////////////////////////////////////////////////////

        ////////////////////////////////////////////////////////////////////////////
        protected virtual void OnValueChanged(EventArgs e)
        {
            if (ValueChanged != null)
            {
                ValueChanged.Invoke(this, e);
            }
        }
Esempio n. 27
0
 protected virtual void OnValueChanged(Base control)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this);
     }
 }
Esempio n. 28
0
 public virtual void NotifyValueChanged(string MemberName, object _value)
 {
     if (ValueChanged != null)
     {
         ValueChanged.Invoke(this, new ValueChangeEventArgs(MemberName, _value));
     }
 }
Esempio n. 29
0
        public void Awake()
        {
            toggle = this.gameObject.GetComponent <Toggle>();
            UnityAction <bool> action = v => ValueChanged.Invoke(v);

            toggle.onValueChanged.AddListener(action);
            xlToggles.Add(this);
        }
Esempio n. 30
0
 /// <summary>
 /// Apply defaults and trigger value changes as required
 /// </summary>
 public void ApplyDefault()
 {
     if (activeValue != defaultValue)
     {
         activeValue = defaultValue;
         ValueChanged.Invoke(activeValue);
     }
 }