Ejemplo n.º 1
0
        public DemoWindow()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(DemoWindow_Loaded);
            
            Agenda agenda = new Agenda();  //this is our model Class

            agenda.Persons.Add(new Person("First Person", 18));
            agenda.Persons.Add(new Person("Second Person", 19));
            agenda.Persons.Add(new Person("Third Person", 20));
            vmAgenda = new VMAgenda(agenda);            
        }
Ejemplo n.º 2
0
 public DeleteCommand(VMAgenda viewModel)
     : base(ApplicationCommands.Delete)
 {
     this._ViewModel = viewModel;
 }
Ejemplo n.º 3
0
 public NewCommand(VMAgenda aViewModel)
     : base(ApplicationCommands.New)
 {
     this._ViewModel = aViewModel;
 }
Ejemplo n.º 4
0
 public VMInsertPerson(VMAgenda vmpersons) : base()
 {
     this._vmPersons = vmpersons;
 }