private void LoadCustomConfiguration() { if (!FacebookRegexConfiguration.LoadCustomRegexes()) { FacebookRegexConfiguration.LoadDefaults(); } }
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"); }
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; }
public void UpdateFacebookConfigExecuted(object args) { FacebookRegexConfiguration.SaveCustomRegexes(FacebookQueryUrl, ExtractUsernamesFromProfilePage, GetRealNameFromProfilePage, GetProfilePhotoFromProfilePage, GetProfilePhotoFromProfilePageSecondPass, GetProfileIntroCardsFromProfilePage, GetDetailsFromIntroCards, GetDetailsFromIntroCardsSecondPass, GetLinksFromFindFriendsPage); MessageBox.Show("Your facebook regexes have been updated."); }