Example #1
0
        public MainWindowViewModel()
        {
            _operationDataBase = OperationDataBase.GetInstance();

            CurrentContent = Content.GetInstance();

            CurrentContent.Catalogs = UpdaterRss.UpdateTreeViewChannels(CurrentContent.User.Login);
        }
        public SettingPageViewModel()
        {
            _operationDataBase = OperationDataBase.GetInstance();
            CurrentContent     = Content.GetInstance();

            Login    = CurrentContent.User.Login;
            Password = CurrentContent.User.Password;
            Email    = CurrentContent.User.Email;
        }
        public RssItemPageViewModel()
        {
            CurrentContent     = Content.GetInstance();
            _operationDataBase = OperationDataBase.GetInstance();

            PrintRssItems();

            Favorite_Checked = _operationDataBase.CheckedFavoriteItem(CurrentContent.User.Login, CurrentContent.RssItem.Title);
        }
Example #4
0
 static UpdaterRss()
 {
     _operationDataBase = OperationDataBase.GetInstance();
 }
 public RegistrationPageViewModel()
 {
     _operationDataBase  = OperationDataBase.GetInstance();
     _currentRegistrUser = new User();
 }
 public LoginPageViewModel()
 {
     CurrentContent     = Content.GetInstance();
     _operationDataBase = OperationDataBase.GetInstance();
 }