private void LoginButton_Click(object sender, EventArgs e) { if (!AppSetting.Instance.AutoLogin) { FormLoggedInUserProxy userProxy = new FormLoggedInUserProxy(this); } if (fetchEverythingCheckBox.Checked) { DisplayFriends(); FacebookFeatures.DisplayEvents(this, m_LoggedInUser); FacebookFeatures.DisplayPages(this, m_LoggedInUser); FacebookFeatures.DisplayTodaysBirthdays(m_LoggedInUser, this); } loginButton.Enabled = false; BirthdayButton.Enabled = true; FriendsButton.Enabled = true; SingleFriendButton.Enabled = true; MarriedFriendsButton.Enabled = true; MaleButton.Enabled = true; FemaleButton.Enabled = true; PageButton.Enabled = true; EventsButton.Enabled = true; StatusButton.Enabled = true; ShowFriendByStatusLinkedLabel.Enabled = true; ShowRandomPhotolinkLabel.Enabled = true; SaveProfilePicturebutton.Enabled = true; checkedListBox1.Enabled = true; UpdateFriendButton.Enabled = true; SendButton.Enabled = true; MessageTextBox.Enabled = true; StatusTextBox.Enabled = true; }
private void CheckedListBox1_SelectedIndexChanged(object sender, EventArgs e) { if (checkedListBox1.CheckedItems.Count != 0) { switch (checkedListBox1.SelectedItem.ToString()) { case "fetch friends": DisplayFriends(); break; case "fetch events": FacebookFeatures.DisplayEvents(this, m_LoggedInUser); break; case "fetch today birthdays": FacebookFeatures.DisplayTodaysBirthdays(m_LoggedInUser, this); break; case "post status": FacebookFeatures.StatusPost(this, m_LoggedInUser, StatusTextBox); break; case "show friends by status": FacebookFeatures.DisplayFriendByStatusAndGender(this, m_LoggedInUser); break; case "fetch pages": FacebookFeatures.DisplayPages(this, m_LoggedInUser); break; case "show a random photo": FacebookFeatures.ShowSwitchesImage(this, m_LoggedInUser); break; } } }
private void Timer1_Tick(object sender, EventArgs e) { FacebookFeatures.ShowSwitchesImage(this, m_LoggedInUser); }
private void ShowFriendByStatusLinkedLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FacebookFeatures.DisplayFriendByStatusAndGender(this, m_LoggedInUser); MaleButton.Checked = true; SingleFriendButton.Checked = true; }
private void FriendsListBox_SelectedIndexChanged(object sender, EventArgs e) { FacebookFeatures.DisplayFriendPhoto(this); }
private void BirthdayButton_Click(object sender, EventArgs e) { FacebookFeatures.DisplayTodaysBirthdays(m_LoggedInUser, this); }
private void PageButton_Clicked(object sender, EventArgs e) { FacebookFeatures.DisplayPages(this, m_LoggedInUser); }
private void StatusButton_Click(object sender, EventArgs e) { FacebookFeatures.StatusPost(this, m_LoggedInUser, StatusTextBox); }
private void EventsButton_Click(object sender, EventArgs e) { FacebookFeatures.DisplayEvents(this, m_LoggedInUser); declineButton.Enabled = true; }