예제 #1
0
        private void btnFollowSomeone_Click(object sender, EventArgs e)
        {
            User me = new User();
            me.UserName = "******";

            User userIWantToFollow = new User();
            userIWantToFollow.UserName = "******";

            Follower follower = new Follower();
            if (follower.Follow(me, userIWantToFollow))
            {
                MessageBox.Show("You have successfully followed " + userIWantToFollow.UserName);
            }
            else
            {
                MessageBox.Show("Sorry, something went wrong.");
            }
        }
예제 #2
0
        private void btnFollowSomeone_Click(object sender, EventArgs e)
        {
            User me = new User();

            me.UserName = "******";

            User userIWantToFollow = new User();

            userIWantToFollow.UserName = "******";

            Follower follower = new Follower();

            if (follower.Follow(me, userIWantToFollow))
            {
                MessageBox.Show("You have successfully followed " + userIWantToFollow.UserName);
            }
            else
            {
                MessageBox.Show("Sorry, something went wrong.");
            }
        }