Esempio n. 1
0
 public SelectModuleDialog(SelectModuleDlgViewModel vmdl)
 {
     InitializeComponent();
     _vmdl = vmdl;
     DataContext = vmdl;
     _vmdl.Close += new EventHandler(_vmdl_Close);
 }
Esempio n. 2
0
 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");
     }
 }