Example #1
0
 private void addBranchButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         bl.addBranch(branch);
         MessageBox.Show("the branch \"" + branch.branchName + "\" added to the list", "");
         branch = new BE.Branch();
         this.gridAddBranch.DataContext = branch;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }