private void bCancelar_Click(object sender, EventArgs e) { DialogResult = DialogResult.Cancel; this.cartel = (GI.BR.Carteles.Cartel)cartelClone.Clone(); Close(); }
private void nuevoCartelDeVentaToolStripMenuItem_Click(object sender, EventArgs e) { frmFichaCarteles frm = new frmFichaCarteles(); GI.BR.Carteles.Cartel c = new GI.BR.Carteles.Cartel(); c.TipoCartel = typeof(GI.BR.Propiedades.Venta); c.FechaAlta = DateTime.Today; c.FechaVencimiento = DateTime.Today; c.Activo = true; frm.Cartel = c; frm.Text = "Cartel de Venta"; if (frm.ShowDialog() == DialogResult.OK) { carteles.Add(c); LlenarLista(); } }