Пример #1
0
 public FormMain()
 {
     InitializeComponent();
     m_AppManager   = AppManager.Instance;
     m_LoggedInUser = m_AppManager.LoggedInUser;
     fetchUserData();
     m_CheckInRecommensationForm = m_AppManager.CheckInForm;
     m_FaceLikersForm            = m_AppManager.FriendRaterForm;
 }
 public void Logout()
 {
     try
     {
         FacebookService.Logout(null, AppId);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Operation Failed: " + ex.Message);
     }
     finally
     {
         m_FormMain        = null;
         m_FormCheckIn     = null;
         m_FormFriendRater = null;
         m_FormSettings    = null;
     }
 }