Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (36 sloc) 1012 Bytes
using PeopleViewer.Presentation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace PeopleViewer
{
public partial class MainWindow : Window
{
IPeopleViewModel ViewModel { get; set; }
public MainWindow(IPeopleViewModel viewModel)
{
InitializeComponent();
ViewModel = viewModel;
DataContext = ViewModel;
}
private async void RefreshButton_Click(object sender, RoutedEventArgs e)
{
await ViewModel.RefreshPeople();
}
private void ClearButton_Click(object sender, RoutedEventArgs e)
{
ViewModel.ClearPeople();
}
}
}