Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     //subscriber method void return , sender object , eventargs info, called delegate
     myClass mc = new myClass();
     mc.onPropertyChanged += new EventHandler(mc_onPropertyChanged);
                                                                     //+= tab twice to create below
     mc.Name = "Chris";
 }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {                                                                   //subscriber method void return , sender object , eventargs info, called delegate
            myClass mc = new myClass();

            mc.onPropertyChanged += new EventHandler(mc_onPropertyChanged);
            //+= tab twice to create below
            mc.Name = "Chris";
        }