src/FingersDance.Control.Close/UserControlClose.xaml.cs
changeset 131 9331c3dea175
parent 103 6eb5b39f8e97
child 140 fc7c12f9da30
equal deleted inserted replaced
130:192da585bee5 131:9331c3dea175
    10 
    10 
    11 namespace FingersDance.Control.Close
    11 namespace FingersDance.Control.Close
    12 {
    12 {
    13 	public partial class UserControlClose
    13 	public partial class UserControlClose
    14 	{
    14 	{
    15 		public UserControlClose()
    15         public event EventHandler EH_SurfaceButtonClose_ContactDown;
       
    16         public bool close;
       
    17         public int Id = 0;
       
    18 
       
    19 		public UserControlClose(int closeid)
    16 		{
    20 		{
       
    21             Id = closeid;
    17 			this.InitializeComponent();
    22 			this.InitializeComponent();
    18 
    23 
    19 			// Insert code required on object creation below this point.
    24 			// Insert code required on object creation below this point.
    20 		}
    25 		}
       
    26 
       
    27         private void SurfaceButtonOK_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
       
    28         {
       
    29             if (EH_SurfaceButtonClose_ContactDown != null)
       
    30             {
       
    31                 close = true;
       
    32                 EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
       
    33             }
       
    34         }
       
    35 
       
    36         private void SurfaceButtonNO_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
       
    37         {
       
    38             if (EH_SurfaceButtonClose_ContactDown != null)
       
    39             {
       
    40                 close = false;
       
    41                 EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
       
    42             }
       
    43         }
       
    44 
       
    45         private void SurfaceButtonNO_Click(object sender, RoutedEventArgs e)
       
    46         {
       
    47             if (EH_SurfaceButtonClose_ContactDown != null)
       
    48             {
       
    49                 close = false;
       
    50                 EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
       
    51             }
       
    52         }
       
    53 
       
    54         private void SurfaceButtonOK_Click(object sender, RoutedEventArgs e)
       
    55         {
       
    56             if (EH_SurfaceButtonClose_ContactDown != null)
       
    57             {
       
    58                 close = true;
       
    59                 EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
       
    60             }
       
    61         }
    21 	}
    62 	}
    22 }
    63 }