예제 #1
0
        private void btnAddTest_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                bl.addTest(t);
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #2
0
        private void btnAddTest_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                bl.addTest(MyTest);
                MessageBox.Show("You have successfully added a test");
            }

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