コード例 #1
0
 private void buttonLogin_Click(object sender, EventArgs e)
 {
     try
     {
         DataManagerWrapper.SetDataManager(this, FacebookConnection.Login());
         showHomePage();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
        protected override void OnShown(EventArgs e)
        {
            try
            {
                m_AppSettings = AppSettings.Instance;
                if (m_AppSettings.RememberUser && !string.IsNullOrEmpty(m_AppSettings.LastAccessToken))
                {
                    DataManagerWrapper.SetDataManager(this, FacebookConnection.Connect(m_AppSettings.LastAccessToken));
                    initializeUserPreferences();
                    showHomePage();
                }
            }
            catch (Exception)
            {
            }

            base.OnShown(e);
        }
 private void manualConnection()
 {
     DataManagerWrapper.SetDataManager(this, FacebookConnection.Login());
     invokeHomePage();
 }
 private void AutomaticConnection()
 {
     initializeUserPreferences();
     DataManagerWrapper.SetDataManager(this, FacebookConnection.Connect(m_AppSettings.LastAccessToken));
     showHomePage();
 }