private void AddDepartment_Click(object sender, RoutedEventArgs e) { var Addwin = new AddDepWindow(); MyViewModel viewModel = new MyViewModel(); Addwin.DataContext = viewModel; Addwin.Show(); }
private void AddEmployee_Click(object sender, RoutedEventArgs e) { var Addwin = new AddDepWindow(); Addwin.ShowDialog(); }