54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using AppData;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace NKC_WF
|
|
{
|
|
public class BaseUserControl : 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;
|
|
/// <summary>
|
|
/// Chiamata evento
|
|
/// </summary>
|
|
public void raiseEvent()
|
|
{
|
|
// se qualcuno ascolta sollevo evento nuovo valore...
|
|
if (eh_doRefresh != null)
|
|
{
|
|
eh_doRefresh(this, new EventArgs());
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Chiamata evento
|
|
/// </summary>
|
|
public void raiseReset()
|
|
{
|
|
// se qualcuno ascolta sollevo evento nuovo valore...
|
|
if (eh_doReset != null)
|
|
{
|
|
eh_doReset(this, new EventArgs());
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Wrapper traduzione termini
|
|
/// </summary>
|
|
/// <param name="lemma"></param>
|
|
/// <returns></returns>
|
|
public string traduci(string lemma)
|
|
{
|
|
return SteamWare.user_std.UtSn.Traduci(lemma);
|
|
}
|
|
|
|
}
|
|
} |