43 lines
901 B
C#
43 lines
901 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace NKC_WF.WebUserControls
|
|
{
|
|
public partial class cmp_slider : BaseUserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
protected void txtSlider_TextChanged(object sender, EventArgs e)
|
|
{
|
|
// segnala evento registrazione valore
|
|
raiseEvent();
|
|
}
|
|
/// <summary>
|
|
/// valore selezionato
|
|
/// </summary>
|
|
public int selValue
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(txtSlider.Text, out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
// lo imposto sapendo che è fondoscala a 100!
|
|
txtSlider.Text = value.ToString();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Fondoscale (hard coded...)
|
|
/// </summary>
|
|
public int resolution = 100;
|
|
}
|
|
} |