예제 #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            HappyBirthday birthdayMessage = new HappyBirthday();

            birthdayMessage.MyProperty   = "dude";
            birthdayMessage.PresentCount = 3;

            string returnedMessage = birthdayMessage.getMessage("dude");

            MessageBox.Show(returnedMessage);
        }
예제 #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            HappyBirthday birthdayMessage = new HappyBirthday();

            MessageBox.Show(birthdayMessage.getMessage("bro"));
        }