private void menu_chooseBoss_Click(object sender, RoutedEventArgs e) { SelectUserWindow selectUserWindow = new SelectUserWindow(iTree.UserList); if (selectUserWindow.ShowDialog() == true) { iTree.ChooseBoss(selectUserWindow.SelectedUser); userContract.ChooseBoss(selectUserWindow.SelectedUser); } }