コード例 #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);
            }
        }