Пример #1
0
        //Constructor
        public DashboardViewModel()
        {
            NewWatchlistCommand = new NewWatchlistCommand(this);
            MyListCommand       = new MyListCommand(this);

            _db = new ApplicationDbContext();
        }
 //Constructor - initialize all commands here...
 public MainWindowViewModel()
 {
     this.AddTvShowCommand = new AddTvShowCommand(this);
     this.MyListCommand    = new MyListCommand(this);
 }