예제 #1
0
        private void endProsses_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                tester.TesterAddress = new BE.Address {
                    street = this.street1.Text, buildingNumber = int.Parse(this.buildingNumber1.Text), town = town1.Text
                };
                bl.AddTesterBL(tester);
                tester = new BE.Tester();
                this.TesterGrid.DataContext = tester;

                throw new Exception("פרטיך נקלטו במערכת");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                this.Close();
            }
        }