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

            new EmployeeFinderView(employeeFinderViewModel).ShowDialog();
        }
コード例 #3
0
 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;
 }