Пример #1
0
 public void listartemperas()
 {
     foreach (Tempera temp in this._paleta.getTempera())
     {
         this.lstColores.Items.Add(Tempera.Mostar(temp));
     }
 }
Пример #2
0
        //botonmas
        private void button1_Click(object sender, EventArgs e)//agrego con mas y entro ak//(2)
        {
            frmTempera frm = new frmTempera();

            frm.ShowDialog();//(6)

            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                this._paleta += frm.gettempera();
                lstColores.Items.Clear();
                foreach (Tempera t in this._paleta.getTempera())
                {
                    lstColores.Items.Add(Tempera.Mostar(t));
                }
            }
        }