Exemplo n.º 1
0
 private void btnEnrol_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         btnEnrol.IsEnabled = false;
         MachineEnrolment objMachineEnrolment = new MachineEnrolment(lblGame.Content.ToString().Trim() == String.Empty, _POSDetail.PostionNumber);
         objMachineEnrolment.Owner = Window.GetWindow(this);
         objMachineEnrolment.ShowDialog();
     }
     finally
     {
         btnEnrol.IsEnabled = true;
     }
 }
 private void btnEnrol_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         btnEnrol.IsEnabled = false;
         MachineEnrolment objMachineEnrolment = new MachineEnrolment(lblGame.Content.ToString().Trim() == String.Empty, _POSDetail.PostionNumber);
         objMachineEnrolment.Owner = Window.GetWindow(this);
         objMachineEnrolment.ShowDialog();
     }
     finally
     {
         btnEnrol.IsEnabled = true;
     }
 }