Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            form form = new form();

            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                this.listBox1.Items.Clear();
                this.Paletas -= form.Tempera_GetSet;
                string mensaje = (string)this.paleta;
                this.listBox1.Items.Add(mensaje);
            }
        }
Пример #2
0
        private void temperaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            form form = new form();

            //form.MdiParent = this;
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                this.listBox1.Items.Clear();
                this.Paletas += form.Tempera_GetSet;
                string mensaje = (string)this.paleta;
                this.listBox1.Items.Add(mensaje);
            }
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            form form = new form();

            //form.MdiParent = this;
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                this.listBox1.Items.Clear();
                this.Paletas += form.Tempera_GetSet;
                string mensaje;
                for (int i = 0; i < cantidad; i++)
                {
                    mensaje = paleta.Temperas[i];
                    if (!Object.Equals(paleta.Temperas[i], null))
                    {
                        this.listBox1.Items.Add(mensaje);
                    }
                }
                //string mensaje =(string) this.paleta;
                //this.listBox1.Items.Add(mensaje);
            }
        }