Esempio n. 1
0
        public ArticleViewModel(Article article)
        {
            if (article == null)
            {
                throw new ArgumentNullException(nameof(article));
            }

            Article = article;
            SwitchFavoriteArticleCommand = new Microsoft.MobCAT.MVVM.Command(OnSwitchFavoriteArticleCommandExecuted);
        }
Esempio n. 2
0
 public LoginViewModel()
 {
     LoginCommand = new Microsoft.MobCAT.MVVM.Command(Login);
 }