Beispiel #1
0
        private void UpdateOrg_Click(object sender, RoutedEventArgs e)
        {
            OrgViewModel  orVM   = OrgBox.SelectedItem as OrgViewModel;
            EditWindowOrg ew     = new EditWindowOrg(orVM);
            var           result = ew.ShowDialog();

            if (result == true)
            {
                orgService.Update(orVM);
                ew.Close();
                orgs = orgService.GetAll();
                OrgBox.ItemsSource = orgs;
            }
        }