protected void ctrlSlider_Scroll(object sender, System.EventArgs e)
{
try
{
if(m_PropertySpec != null)
{
double dblVal = CalculateValueFromSlider();
PropertySpecEventArgs args = new PropertySpecEventArgs(m_PropertySpec, Convert.ChangeType(dblVal, Type.GetType(m_PropertySpec.TypeName)));
OnSetValue(args);
txtValue.Text = dblVal.ToString();
m_dblCurrentValue = dblVal;
}
}
catch(System.Exception ex)
{
string strVal = ex.Message; //Freaking error CS0168
//System.Windows.Forms.MessageBox.Show(this, ex.Message, "Slider Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}