private UpsertDepartmentWindow ShowUpsertDepartmentVindow(UpsertDepartmentViewModel UpserDepartmentViewModel)
        {
            var UpsertDepartmentWindow = new UpsertDepartmentWindow
            {
                DataContext = UpserDepartmentViewModel
            };

            UpsertDepartmentWindow.ShowDialog();

            return(UpsertDepartmentWindow);
        }
        private void InitUpsertDepartmentWindow(Department Department)
        {
            var UpsertDepartmentViewModel = new UpsertDepartmentViewModel(Department);

            UpsertDepartmentViewModel.CancelEditing += CloseChildWindow;
            UpsertDepartmentViewModel.SaveChanges   += SaveChangesWindow;

            UpsertDepartmentWindow = new UpsertDepartmentWindow
            {
                DataContext = UpsertDepartmentViewModel
            };
            UpsertDepartmentWindow.ShowDialog();
        }