src/FingersDance/MainSurfaceWindow.xaml.cs
changeset 141 923687896770
parent 140 fc7c12f9da30
child 146 dd8ed4d3beb6
--- a/src/FingersDance/MainSurfaceWindow.xaml.cs	Tue Oct 13 10:43:39 2009 +0200
+++ b/src/FingersDance/MainSurfaceWindow.xaml.cs	Tue Oct 13 11:53:15 2009 +0200
@@ -392,12 +392,12 @@
         }
 
         //Actions du boutton Alert selon l'action close OK ou NON
-        private void CloseAlert_EH_SurfaceButton_ContactDown(object sender, EventArgs e)
+        private void CloseAlert_EH_SurfaceButton_ContactDown(object sender, ConfirmEventArgs e)
         {
             Grid root = (Grid)(((UserControlClose)sender).Parent);
-            if(((UserControlClose) sender).close)
+            if(e.Confirmed==true)
             {
-                switch(((UserControlClose)sender).Id)
+                switch(e.PanelNumber)
                 {
                     case 1:
                         root.Children.Remove(Panel1);