private void button1_Click(object sender, EventArgs e) { FormTempera frm = new FormTempera(); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { this.MiPaleta += frm.MiTempera; this.listBox1.Items.Clear(); foreach (Tempera item in this.MiPaleta.MisTemperas) { if (!Equals(item, null)) { listBox1.Items.Add(Tempera.Mostrar(item)); } } } }
public static String Mostrar(Tempera t) { return(t.Mostrar()); }