Esempio n. 1
0
 public MainViewModel()
 {
     Add1Command = new Command(() => AddItems(ViewModel1.Items));
     Add2Command = new Command(() =>
     {
         ViewModel1.ReloadData();
         AddItems(ViewModel1.Items);
     });
 }
Esempio n. 2
0
 public MainViewModel()
 {
     Add1Command = new Command(() => AddItems(ViewModel1.Items));
     Add2Command = new Command(() => AddItems(ViewModel2.Items));
     Add3Command = new Command(() => AddItems(ViewModel3.Items));
     Add4Command = new Command(() =>
     {
         ViewModel1.ReloadData();
         ViewModel2.ReloadData();
         ViewModel3.ReloadData();
     });
     Add5Command = new Command(() =>
     {
         ViewModel1.ChangeListViewVisability();
         ViewModel2.ChangeListViewVisability();
         ViewModel3.ReloadData();
     });
 }