Пример #1
0
        private void btnAddTrainee_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                bl.addTrainee(HodayaY);
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #2
0
        private void btnAddTrainee_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                bl.addTrainee(Abigail);
                MessageBox.Show("You have successfully added a trainee");
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }