public EmployeeFinderView(EmployeeFinderViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }
        public void EmployeeFinder_Click(object sender, RoutedEventArgs e)
        {
            var employeeFinderViewModel = new EmployeeFinderViewModel(user => { new ChatView(new ChatViewModel(user)).Show(); });

            new EmployeeFinderView(employeeFinderViewModel).ShowDialog();
        }
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     var viewModel = new EmployeeFinderViewModel(ViewModel.AddUser);
     new EmployeeFinderView(viewModel).ShowDialog();
 }
 public EmployeeFinderView(EmployeeFinderViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }