Exemple #1
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {        //editar
            toolStripStatusLabel1.Text = "Editar Valor";
            bool aux = false;

            OneValueFrm ovf = new OneValueFrm();

            ovf.previo   = this.listBox1.Text;
            ovf.strleido = "";
            MessageBox.Show(this.listBox1.SelectedValue.ToString());
            ovf.ShowDialog();
            if (ovf.strleido.Length > 0)
            {
                modulo.EditaItem((int)this.listBox1.SelectedValue, ovf.strleido);
            }

            Refresca(entidad);
            if (aux)
            {
                toolStripStatusLabel1.Text = "Actualizacion Realizada";
            }
            else
            {
                toolStripStatusLabel1.Text = "Actualizacion No se ha realizado";
            }
        }
Exemple #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "Agregar Valor";
            OneValueFrm onevalue = new OneValueFrm();

            onevalue.previo   = "";
            onevalue.strleido = "";
            onevalue.ShowDialog();
            modulo.InsertItem(onevalue.strleido);
            Refresca(entidad);
        }