예제 #1
0
        private void btChange_Click(object sender, EventArgs e)
        {
            Elev adauga;

            adauga = Alex;
            Alex   = Elena;
            Elena  = adauga;
            MessageBox.Show("S-au schimbat datele");
        }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     Alex = new Elev()
     {
         Nume = "Alex", inaltimea = 180
     };
     Elena = new Elev()
     {
         Nume = "Elena", inaltimea = 176
     };
 }