Events hinzugefügt
This commit is contained in:
@@ -39,7 +39,29 @@ namespace SanSystem
|
||||
|
||||
private void btn_add_san_Click(object sender, EventArgs e)
|
||||
{
|
||||
FrmSelectNewSan frmSelectNewSan = new FrmSelectNewSan();
|
||||
int mod = (int)Sanierungsarten.KURZLINER ^ (int)Sanierungsarten.QUICKLOCK ^ (int)Sanierungsarten.HUTPROFIL;
|
||||
FrmSelectNewSan frmSelectNewSan = new FrmSelectNewSan(mod);
|
||||
|
||||
frmSelectNewSan.AddKurzlinerClicked += FrmSelectNewSan_AddKurzlinerClicked;
|
||||
frmSelectNewSan.AddHutprofilClicked += FrmSelectNewSan_AddHutprofilClicked;
|
||||
frmSelectNewSan.AddQuicklockClicked += FrmSelectNewSan_AddQuicklockClicked;
|
||||
frmSelectNewSan.ShowDialog();
|
||||
|
||||
}
|
||||
|
||||
private void FrmSelectNewSan_AddQuicklockClicked(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private void FrmSelectNewSan_AddHutprofilClicked(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private void FrmSelectNewSan_AddKurzlinerClicked(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,25 +16,30 @@ namespace SanSystem
|
||||
public partial class FrmSelectNewSan : Form
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// Neue Inliner wurde angeklickt
|
||||
/// </summary>
|
||||
public event EventHandler AddInlinerClicked;
|
||||
/// <summary>
|
||||
///
|
||||
/// Neue Schachtanbindung wurde angeklickt
|
||||
/// </summary>
|
||||
public event EventHandler AddSchachtAnbindungClicked;
|
||||
/// <summary>
|
||||
///
|
||||
/// Neue Kurzliner wurde angeklickt
|
||||
/// </summary>
|
||||
public event EventHandler AddKurzlinerClicked;
|
||||
/// <summary>
|
||||
///
|
||||
/// Neue Hutprofil wurde angeklickt
|
||||
/// </summary>
|
||||
public event EventHandler AddHutprofilClicked;
|
||||
|
||||
/// <summary>
|
||||
/// Neue Quicklock wurde angeklickt
|
||||
/// </summary>
|
||||
public event EventHandler AddQuicklockClicked;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void OnAddSchachtAnbindungClicked(EventArgs e)
|
||||
{
|
||||
EventHandler handler = AddSchachtAnbindungClicked;
|
||||
@@ -43,21 +48,40 @@ namespace SanSystem
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void OnAddInlinerClicked(EventArgs e)
|
||||
{
|
||||
EventHandler handler = AddInlinerClicked;
|
||||
if (handler != null) handler(this, e);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void OnAddKurzlinerClicked(EventArgs e)
|
||||
{
|
||||
EventHandler handler = AddKurzlinerClicked;
|
||||
if (handler != null) handler(this, e);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void OnAddHutClicked(EventArgs e)
|
||||
{
|
||||
EventHandler handler = AddHutprofilClicked;
|
||||
if (handler != null) handler(this, e);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void OnAddQuickLockClicked(EventArgs e)
|
||||
{
|
||||
EventHandler handler = AddQuicklockClicked;
|
||||
if (handler != null) handler(this, e);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user