--- a/src/FingersDance.Control.Close/UserControlClose.xaml.cs Tue Oct 13 10:43:39 2009 +0200
+++ b/src/FingersDance.Control.Close/UserControlClose.xaml.cs Tue Oct 13 11:53:15 2009 +0200
@@ -13,11 +13,17 @@
public class ConfirmEventArgs : EventArgs
{
public Boolean Confirmed;
+ public int PanelNumber = 0;
public ConfirmEventArgs(Boolean b)
{
Confirmed = b;
}
+ public ConfirmEventArgs(Boolean b, int panelNum)
+ {
+ Confirmed = b;
+ PanelNumber = panelNum;
+ }
}
public partial class UserControlClose
@@ -57,7 +63,7 @@
if (ConfirmYesOrNo != null)
{
close = true;
- ConfirmYesOrNo(this, new ConfirmEventArgs(true));
+ ConfirmYesOrNo(this, new ConfirmEventArgs(true, Id));
}
}
@@ -66,7 +72,7 @@
if (ConfirmYesOrNo != null)
{
close = true;
- ConfirmYesOrNo(this, new ConfirmEventArgs(true));
+ ConfirmYesOrNo(this, new ConfirmEventArgs(true, Id));
}
}
@@ -75,7 +81,7 @@
if (ConfirmYesOrNo != null)
{
close = false;
- ConfirmYesOrNo(this, new ConfirmEventArgs(false));
+ ConfirmYesOrNo(this, new ConfirmEventArgs(false, Id));
}
}
@@ -84,7 +90,7 @@
if (ConfirmYesOrNo != null)
{
close = false;
- ConfirmYesOrNo(this, new ConfirmEventArgs(false));
+ ConfirmYesOrNo(this, new ConfirmEventArgs(false, Id));
}
}
}