Beispiel #1
0
        public MainWindow()
        {
            _isInitializing = true;
            InitializeComponent();

            _wishlistRetriever     = new SteamWishlistRetriever();
            _gamesRetriever        = new SteamOwnedGamesRetriever();
            _profileUrlValidator   = new SteamProfileUrlValidator();
            _sharedGames           = new List <SteamGamesList>();
            _theirProfileTextboxes = new[] { txtTheirProfile1, txtTheirProfile2, txtTheirProfile3, txtTheirProfile3, txtTheirProfile4, txtTheirProfile5 };

            InitializeTextbox(txtMyProfile, UrlSaver.MySteamProfile, DefaultTextMySteamProfile);
            for (int i = 0; i < _theirProfileTextboxes.Count; i++)
            {
                string savedValue = UrlSaver.TheirSteamProfiles.Skip(i).FirstOrDefault();
                InitializeTextbox(_theirProfileTextboxes[i], savedValue, DefaultTextTheirSteamProfile);
            }
            _isInitializing = false;

            RefreshGamesLists();
        }
        public MainWindow()
        {
            _isInitializing = true;
            InitializeComponent();

            _wishlistRetriever = new SteamWishlistRetriever();
            _gamesRetriever = new SteamOwnedGamesRetriever();
            _profileUrlValidator = new SteamProfileUrlValidator();
            _sharedGames = new List<SteamGamesList>();
            _theirProfileTextboxes = new[] {txtTheirProfile1, txtTheirProfile2, txtTheirProfile3, txtTheirProfile3, txtTheirProfile4, txtTheirProfile5};

            InitializeTextbox(txtMyProfile, UrlSaver.MySteamProfile, DefaultTextMySteamProfile);
            for (int i = 0; i < _theirProfileTextboxes.Count; i++)
            {
                string savedValue = UrlSaver.TheirSteamProfiles.Skip(i).FirstOrDefault();
                InitializeTextbox(_theirProfileTextboxes[i], savedValue, DefaultTextTheirSteamProfile);
            }
            _isInitializing = false;

            RefreshGamesLists();
        }