/// <summary> /// Vyvolá metodu OnValueTotalChanged() a event ValueTotalChanged /// </summary> protected void CallValueTotalChanged(DecimalRange oldValue, DecimalRange newValue, EventSourceType eventSource) { GPropertyChangeArgs <DecimalRange> args = new GPropertyChangeArgs <DecimalRange>(oldValue, newValue, eventSource); this.OnValueTotalChanged(args); if (!this.IsSuppressedEvent && this.ValueTotalChanged != null) { this.ValueTotalChanged(this, args); } }
/// <summary> /// Vyvolá metodu OnValueChanging() a event ValueChanging /// </summary> protected void CallValueChanging(Decimal oldValue, Decimal newValue, EventSourceType eventSource) { GPropertyChangeArgs <Decimal> args = new GPropertyChangeArgs <Decimal>(oldValue, newValue, eventSource); this.OnValueChanging(args); if (!this.IsSuppressedEvent && this.ValueChanging != null) { this.ValueChanging(this, args); } }
private void ScrollV_ValueChanged(object sender, GPropertyChangeArgs <DecimalNRange> e) { if (this._SuppressEvents) { return; } using (_SuppressedEvents.Scope(this)) { this.AxisV.Value = this.ScrollV.Value; } this.Draw(); }
/// <summary> /// Po změně pozice splitteru Bottom /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _SplitterB_ValueChanging(object sender, GPropertyChangeArgs <int> e) { if (this.IsSuppressedEvent) { return; } this._PanelLayout.BottomSplitterValue = this._BottomPanelSplitter.Value; e.CorrectValue = this._PanelLayout.BottomSplitterValue; if (e.IsChangeValue) { this.ConfigSaveDeffered(); } this.CalculateLayout(); }
/// <summary> /// Po změně IsCollapsed na některém z panelů /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _TabContainers_IsCollapsedChanged(object sender, GPropertyChangeArgs <bool> e) { this.CalculateLayout(); this.Repaint(); }
/// <summary> /// Po změně záložky, která reprezentuje komplexní GUI datového zdroje /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _TabContainerActivePageChanged(object sender, GPropertyChangeArgs <Components.TabPage> e) { }
/// <summary> /// Po změně velikosti toolbaru přepočítá souřadnice panelu /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _ToolBarSizeChanged(object sender, GPropertyChangeArgs <ComponentSize> e) { this._ControlLayout.ToolbarSize = e.NewValue; this.ConfigSaveDeffered(); this.CalculateLayout(); }
private void SplitterV_LocationChanging(object sender, GPropertyChangeArgs <int> e) { this.ComponentLayout(); }
/// <summary> /// Háček volaný po skončení změny hodnoty <see cref="ValueTotal"/> /// </summary> protected virtual void OnValueTotalChanged(GPropertyChangeArgs <DecimalRange> args) { }
/// <summary> /// Háček volaný po skončení změny hodnoty <see cref="Value"/> /// </summary> protected virtual void OnValueChanged(GPropertyChangeArgs <Decimal> args) { }