70 lines
1.4 KiB
C#
70 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace MP_MAG.WebUserControls
|
|
{
|
|
public partial class cmp_dettLotti : System.Web.UI.UserControl
|
|
{
|
|
/// <summary>
|
|
/// Generico evento di richiesta refresh a aprent
|
|
/// </summary>
|
|
public event EventHandler eh_doRefresh;
|
|
/// <summary>
|
|
/// Generico evento di richiesta refresh a aprent
|
|
/// </summary>
|
|
public event EventHandler eh_doReset;
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Lotto OUT cui fare riferimento con elenco
|
|
/// </summary>
|
|
public string lotto
|
|
{
|
|
get
|
|
{
|
|
return hfLotto.Value;
|
|
}
|
|
set
|
|
{
|
|
hfLotto.Value = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// comando reset
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void lbtReset_Click(object sender, EventArgs e)
|
|
{
|
|
resetSelezione();
|
|
}
|
|
|
|
private void resetSelezione()
|
|
{
|
|
grView.SelectedIndex = -1;
|
|
grView.DataBind();
|
|
raiseReset();
|
|
}
|
|
/// <summary>
|
|
/// Chiamata evento
|
|
/// </summary>
|
|
public void raiseReset()
|
|
{
|
|
// se qualcuno ascolta sollevo evento nuovo valore...
|
|
if (eh_doReset != null)
|
|
{
|
|
eh_doReset(this, new EventArgs());
|
|
}
|
|
}
|
|
}
|
|
}
|