Пример #1
0
 /* método emissor final */
 protected virtual void OnAlteracaoCor(AlteracaoCorEventArgs e)
 {
     if (AlteracaoCor != null)
     {
         AlteracaoCor(this, e);
     }
 }
Пример #2
0
 /* método final */
 private void btnCliqueAqui_AlteracaoCor(object sender, AlteracaoCorEventArgs e)
 {
     richTextBox1.AppendText(e.CorAnterior + " => " + meuBotao.BackColor.ToString() + "\n");
 }