Esempio n. 1
0
 public static void OnProfileButtonClicked(FacebookForm i_FacebookForm)
 {
     if (i_FacebookForm != m_ProfileForm)
     {
         i_FacebookForm.Close();
         new Thread(showProfileForm).Start();
     }
 }
Esempio n. 2
0
 public static void OnMatchFinderButtonClicked(FacebookForm i_SenderForm)
 {
     if (i_SenderForm != m_MatchFinderForm)
     {
         i_SenderForm.Close();
         new Thread(showMatchFinderForm).Start();
     }
 }
Esempio n. 3
0
 public static void OnFriendsAndAlbumsButtonClicked(FacebookForm i_SenderForm)
 {
     if (i_SenderForm != m_FriendsAndAlbumsForm)
     {
         i_SenderForm.Close();
         new Thread(showFriendsAndAlbumsForm).Start();
     }
 }
Esempio n. 4
0
        public static void OnFormClosing(object sender, FormClosingEventArgs e)
        {
            FacebookForm senderForm = sender as FacebookForm;

            senderForm.GetSettings(ref m_AppSettings);
            if (senderForm.DialogResult == DialogResult.Cancel)
            {
                m_AppSettings.SaveToFile();
            }
        }
Esempio n. 5
0
 public static void OnLoginLogoutButtonClicked(FacebookForm i_SenderForm)
 {
     if (!v_LoggedIn)
     {
         login();
         loggedIn();
     }
     else
     {
         m_AppSettings.LastAccessToken = null;
         m_AppSettings.SaveToFile();
         MessageBox.Show("Good Bye...", "Logged Out", MessageBoxButtons.OK, MessageBoxIcon.Information);
         System.Environment.Exit(1);
     }
 }
Esempio n. 6
0
 private static void showDialogAccordingToAppSettings(FacebookForm i_FacebookForm)
 {
     i_FacebookForm.SetSettings(m_AppSettings);
     i_FacebookForm.ShowDialog();
 }