Exemplo n.º 1
0
 /// <summary>
 /// This method is called when the <see cref="ValueChanged"/> event is raised.
 /// </summary>
 /// <param name="sender"> The <see cref="GuiItem"/> that raised the event. </param>
 /// <param name="e"> The new value of the slider. </param>
 protected void OnValueChanged(object sender, Args e)
 {
     data.Value = e.NewValue;
 }
Exemplo n.º 2
0
 /// <summary>
 /// This method is called when the <see cref="ValueChanged"/> event is raised.
 /// </summary>
 /// <param name="sender"> The <see cref="GuiItem"/> that raised the event. </param>
 /// <param name="args"> The new value of the <see cref="ProgressBar"/>. </param>
 protected virtual void OnValueChanged(GuiItem sender, Args args)
 {
     data.Value = args.NewValue;
     Refresh();
 }