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); } }
private void DoChangedValueEvent(CategoryFieldName field) { if ((ValueChanged != null) && (ActiveCategory != null) && !_haltEvents) { ValueChanged.Invoke(this, new CategoryValueChangedArgs(ActiveCategory, field)); } }
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()); } }
private void DoChangedValueEvent(ItemFieldName field) { if ((ValueChanged != null) && (ActiveItem != null) && !_haltEvents) { ValueChanged.Invoke(this, new ItemValueChangedArgs(ActiveItem, field)); } }
public void OnValueChanged(SudokuCell Source, int NewValue) { if (ValueChanged != null) { ValueChanged.Invoke(Source, NewValue); } }
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()); } }
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; } }
void scrollBar_ScrollChangePosition(Widget source, EventArgs e) { if (ValueChanged != null) { ValueChanged.Invoke(this, EventArgs.Empty); } }
//////////////////////////////////////////////////////////////////////////// protected virtual void OnValueChanged(TomShane.Neoforce.Controls.EventArgs e) { if (ValueChanged != null) { ValueChanged.Invoke(this, e); } }
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; }
protected virtual void OnValueChanged(object oldValue, object newValue) { if (ValueChanged != null) { ValueChanged.Invoke(this, EventArgs.Empty); } }
/// <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); } }
private void DoValueChangedEvent() { if (ValueChanged != null) { ValueChanged.Invoke(this, new EventArgs()); } }
private void OnRowValueChanged(Base control) { if (ValueChanged != null) { ValueChanged.Invoke(control); } }
private void DoChangedValueEvent(TaxFieldName field) { if ((ValueChanged != null) && (ActiveTax != null) && !_haltEvents) { ValueChanged.Invoke(this, new TaxValueChangedArgs(ActiveTax, field)); } }
protected virtual void DoChanged() { if (ValueChanged != null) { ValueChanged.Invoke(this, EventArgs.Empty); } }
protected virtual void DoChanged() { if (ValueChanged != null) { ValueChanged.Invoke(this); } }
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()); } }
private void OnRowValueChanged(ControlBase control, EventArgs args) { if (ValueChanged != null) { ValueChanged.Invoke(control, EventArgs.Empty); } }
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)); } }
private void fireValueChanged() { if (ValueChanged != null) { ValueChanged.Invoke(edit, EventArgs.Empty); } }
//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// protected virtual void OnValueChanged(EventArgs e) { if (ValueChanged != null) { ValueChanged.Invoke(this, e); } }
protected virtual void OnValueChanged(Base control) { if (ValueChanged != null) { ValueChanged.Invoke(this); } }
public virtual void NotifyValueChanged(string MemberName, object _value) { if (ValueChanged != null) { ValueChanged.Invoke(this, new ValueChangeEventArgs(MemberName, _value)); } }
public void Awake() { toggle = this.gameObject.GetComponent <Toggle>(); UnityAction <bool> action = v => ValueChanged.Invoke(v); toggle.onValueChanged.AddListener(action); xlToggles.Add(this); }
/// <summary> /// Apply defaults and trigger value changes as required /// </summary> public void ApplyDefault() { if (activeValue != defaultValue) { activeValue = defaultValue; ValueChanged.Invoke(activeValue); } }