public SelectModuleDialog(SelectModuleDlgViewModel vmdl) { InitializeComponent(); _vmdl = vmdl; DataContext = vmdl; _vmdl.Close += new EventHandler(_vmdl_Close); }
public void Add() { var dlgVmdl = new SelectModuleDlgViewModel(List); var dlg = new SelectModuleDialog(dlgVmdl); if (dlg.ShowDialog() == true) { Model.AddRange(dlgVmdl.Selected.Select(i => i.Module)); _moduleViewModels = null; OnPropertyChanged("List"); } }