示例#1
0
        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;
        }
示例#2
0
        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;
                }
            }
        }
示例#3
0
 private void Timer1_Tick(object sender, EventArgs e)
 {
     FacebookFeatures.ShowSwitchesImage(this, m_LoggedInUser);
 }
示例#4
0
 private void ShowFriendByStatusLinkedLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     FacebookFeatures.DisplayFriendByStatusAndGender(this, m_LoggedInUser);
     MaleButton.Checked         = true;
     SingleFriendButton.Checked = true;
 }
示例#5
0
 private void FriendsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     FacebookFeatures.DisplayFriendPhoto(this);
 }
示例#6
0
 private void BirthdayButton_Click(object sender, EventArgs e)
 {
     FacebookFeatures.DisplayTodaysBirthdays(m_LoggedInUser, this);
 }
示例#7
0
 private void PageButton_Clicked(object sender, EventArgs e)
 {
     FacebookFeatures.DisplayPages(this, m_LoggedInUser);
 }
示例#8
0
 private void StatusButton_Click(object sender, EventArgs e)
 {
     FacebookFeatures.StatusPost(this, m_LoggedInUser, StatusTextBox);
 }
示例#9
0
 private void EventsButton_Click(object sender, EventArgs e)
 {
     FacebookFeatures.DisplayEvents(this, m_LoggedInUser);
     declineButton.Enabled = true;
 }