Beispiel #1
0
        /// <summary>
        /// Defines actions to be performed when a  button is pressed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Delete_Click(object sender, RoutedEventArgs e)
        {
            Button a = (Button)sender;

            tempUser = (BO.User)a.DataContext;
            try
            {
                bl.DeleteUser(tempUser.UserName);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Exception", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            new PresentationDriver().Show();
            this.Close();
        }