Example #1
0
        ObservableCollection<ViewModelBase> _viewModel; ///whats this 

        #endregion Fields

        #region Constructors

        public MainWindowViewModel()
        {
            _employeeRespository = new EmployeeRespository();
            //create an instance of out viewmodel add it to our collection ;
            EmployeeListViewModel vmEmployee = new EmployeeListViewModel(_employeeRespository);
            this.ViewModels.Add(vmEmployee);
        }
Example #2
0
        ObservableCollection <ViewModelBase> _viewModel;   ///whats this


        #region Construct

        public MainWindowViewModel()
        {
            _employeeRespository = new EmployeeRespository();
            //create an instance of out viewmodel add it to our collection ;
            EmployeeListViewModel vmEmployee = new EmployeeListViewModel(_employeeRespository);

            this.ViewModels.Add(vmEmployee);
        }