private void GetSocialFeedSettingInfo()
    {
        SocialFeedController  objController = new SocialFeedController();
        SocialFeedSettingInfo objSetting    = objController.GetSocialFeedSettingInfo();

        if (objSetting != null)
        {
            isFacebookEnabled = objSetting.EnableFacebook;
            isTwitterEnabled  = objSetting.EnableTwitter;
            isLinkedInEnabled = objSetting.EnableLinkedIn;

            FBAppID  = objSetting.FBAppID;
            FBSecret = objSetting.FBAppSecret;

            TwitterConsumerKey    = objSetting.TwitterConsumerKey;
            TwitterConsumerSecret = objSetting.TwitterConsumerSecret;

            LinkedInAppID  = objSetting.LinkedInAppID;
            LinkedInSecret = objSetting.LinkedInAppSecret;
        }
    }
Beispiel #2
0
    private void GetSocialFeedSettingInfo()
    {
        SocialFeedController  objController = new SocialFeedController();
        SocialFeedSettingInfo objSetting    = objController.GetSocialFeedSettingInfo();

        if (objSetting != null)
        {
            hdnSettingID.Value        = objSetting.SettingID.ToString();
            cbFacebook.Checked        = objSetting.EnableFacebook;
            txtFacebookAppID.Text     = objSetting.FBAppID;
            txtFacebookAppSecret.Text = objSetting.FBAppSecret;

            cbTwitter.Checked             = objSetting.EnableTwitter;
            txtTwitterConsumerKey.Text    = objSetting.TwitterConsumerKey;
            txtTwitterConsumerSecret.Text = objSetting.TwitterConsumerSecret;

            cbLinkedIn.Checked        = objSetting.EnableLinkedIn;
            txtLinkedInAppID.Text     = objSetting.LinkedInAppID;
            txtLinkedInAppSecret.Text = objSetting.LinkedInAppSecret;
            txtLinkedInCompanyID.Text = objSetting.LinkedInCompanyID;
        }
    }