src/FingersDance/MainSurfaceWindow.xaml.cs
changeset 141 923687896770
parent 140 fc7c12f9da30
child 146 dd8ed4d3beb6
equal deleted inserted replaced
140:fc7c12f9da30 141:923687896770
   390             }
   390             }
   391             catch (Exception ex) { }
   391             catch (Exception ex) { }
   392         }
   392         }
   393 
   393 
   394         //Actions du boutton Alert selon l'action close OK ou NON
   394         //Actions du boutton Alert selon l'action close OK ou NON
   395         private void CloseAlert_EH_SurfaceButton_ContactDown(object sender, EventArgs e)
   395         private void CloseAlert_EH_SurfaceButton_ContactDown(object sender, ConfirmEventArgs e)
   396         {
   396         {
   397             Grid root = (Grid)(((UserControlClose)sender).Parent);
   397             Grid root = (Grid)(((UserControlClose)sender).Parent);
   398             if(((UserControlClose) sender).close)
   398             if(e.Confirmed==true)
   399             {
   399             {
   400                 switch(((UserControlClose)sender).Id)
   400                 switch(e.PanelNumber)
   401                 {
   401                 {
   402                     case 1:
   402                     case 1:
   403                         root.Children.Remove(Panel1);
   403                         root.Children.Remove(Panel1);
   404                         Panel1 = null;
   404                         Panel1 = null;
   405                         break;
   405                         break;