Exemplo n.º 1
0
 private void OnSizeValueChanged(s_SizeInfo SizeInfo)
 {
     if (SizeValueChanged != null)
     {
         SizeValueChanged.Invoke(SizeInfo, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// this is called if the size value of the vtext interface changes
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 void OnSizeChanged(object sender, GenericEventArgs <float> e)
 {
     if (SizeValueChanged != null)
     {
         float normalizedValue = (e.Value - _minSize) / (_maxSize - _minSize);
         SizeValueChanged.Invoke(this, new GenericEventArgs <float>(normalizedValue));
     }
 }