public FacebookForm() { InitializeComponent(); m_FacebookAppFacade = new FacebookAppFacade(); updateFormSettings(); m_FacebookAppFacade.m_FacebookConnectionNotifier += updateDisplay; }
private void buttonLogin_Click(object sender, EventArgs e) { if (buttonLogin.Text == "Logout") { m_FacebookAppFacade.Logout(); m_FacebookAppFacade = null; FacebookForm NewForm = new FacebookForm(); NewForm.Show(); this.Dispose(false); return; } m_FacebookAppFacade.Login(); }