Example #1
0
 private void SwapB3_Click(object sender, EventArgs e)
 {
     Elephant holder;
     holder = Lloyd;
     Lloyd = Lucinda;
     Lucinda = holder;
     MessageBox.Show("Objects Swapped!!!!!");
 }
Example #2
0
 public void TellMe(string message, Elephant whoSaidIt)
 {
     MessageBox.Show(whoSaidIt.Name + " says: " + message);
 }
Example #3
0
 public void SpeakTo(Elephant whoToTalkTo, string message)
 {
     whoToTalkTo.TellMe(message, this);
 }
Example #4
0
 public Form1()
 {
     InitializeComponent();
     Lucinda = new Elephant() { Name = "Lucinda", EarSize = 33 };
     Lloyd = new Elephant() { Name = "Lloyd", EarSize = 40 };
 }