Beispiel #1
0
 private void LoadCustomConfiguration()
 {
     if (!FacebookRegexConfiguration.LoadCustomRegexes())
     {
         FacebookRegexConfiguration.LoadDefaults();
     }
 }
Beispiel #2
0
        public void LoadDefaultsExecuted(object args)
        {
            FacebookRegexConfiguration.LoadDefaults();

            FacebookQueryUrl = FacebookRegexConfiguration.FacebookQueryURL;
            ExtractUsernamesFromProfilePage          = FacebookRegexConfiguration.ExtractUserNamesFromProfilePageRegex;
            GetRealNameFromProfilePage               = FacebookRegexConfiguration.GetRealNameFromProfilePageRegex;
            GetProfilePhotoFromProfilePage           = FacebookRegexConfiguration.GetProfilePhotoFromProfilePageRegex;
            GetProfilePhotoFromProfilePageSecondPass = FacebookRegexConfiguration.GetProfilePhotoFromProfilePageSecondPassRegex;
            GetProfileIntroCardsFromProfilePage      = FacebookRegexConfiguration.GetProfileIntroCardFromProfilePageRegex;
            GetDetailsFromIntroCards           = FacebookRegexConfiguration.GetDetailsFromIntroCardRegex;
            GetDetailsFromIntroCardsSecondPass = FacebookRegexConfiguration.GetDetailsFromIntroCardSecondPassRegex;
            GetLinksFromFindFriendsPage        = FacebookRegexConfiguration.GetLinksFromFindFriendsPageRegex;
            MessageBox.Show("Defaults Loaded");
        }
Beispiel #3
0
        private void LoadCustomConfiguration()
        {
            if (!FacebookRegexConfiguration.LoadCustomRegexes())
            {
                FacebookRegexConfiguration.LoadDefaults();
            }

            FacebookQueryUrl = FacebookRegexConfiguration.FacebookQueryURL;
            ExtractUsernamesFromProfilePage          = FacebookRegexConfiguration.ExtractUserNamesFromProfilePageRegex;
            GetRealNameFromProfilePage               = FacebookRegexConfiguration.GetRealNameFromProfilePageRegex;
            GetProfilePhotoFromProfilePage           = FacebookRegexConfiguration.GetProfilePhotoFromProfilePageRegex;
            GetProfilePhotoFromProfilePageSecondPass = FacebookRegexConfiguration.GetProfilePhotoFromProfilePageSecondPassRegex;
            GetProfileIntroCardsFromProfilePage      = FacebookRegexConfiguration.GetProfileIntroCardFromProfilePageRegex;
            GetDetailsFromIntroCards           = FacebookRegexConfiguration.GetDetailsFromIntroCardRegex;
            GetDetailsFromIntroCardsSecondPass = FacebookRegexConfiguration.GetDetailsFromIntroCardSecondPassRegex;
            GetLinksFromFindFriendsPage        = FacebookRegexConfiguration.GetLinksFromFindFriendsPageRegex;
        }
Beispiel #4
0
 public void UpdateFacebookConfigExecuted(object args)
 {
     FacebookRegexConfiguration.SaveCustomRegexes(FacebookQueryUrl, ExtractUsernamesFromProfilePage, GetRealNameFromProfilePage, GetProfilePhotoFromProfilePage, GetProfilePhotoFromProfilePageSecondPass, GetProfileIntroCardsFromProfilePage, GetDetailsFromIntroCards, GetDetailsFromIntroCardsSecondPass, GetLinksFromFindFriendsPage);
     MessageBox.Show("Your facebook regexes have been updated.");
 }