private void cmdLoad_Click(object sender, RoutedEventArgs e) { //_viewModel.LoadClicked(); var vm = new Find.FindDefinitionViewModel(); var window = new Find.FindDefinition(vm); window.ShowDialog(); _viewModel.LoadClicked(vm.SelectedDefinition.Definition); }
public FindDefinition(FindDefinitionViewModel vm) { InitializeComponent(); this.VM = vm; this.DataContext = this.VM; }