Exemplo n.º 1
0
        private void BtnNuevaReserva_Click(object sender, EventArgs e)
        {
            FrmNuevaReserva reserva = new FrmNuevaReserva
            {
                StartPosition = FormStartPosition.CenterScreen
            };

            reserva.ShowDialog();
            if (reserva.DialogResult == DialogResult.OK)
            {
                this.Reserva_OnRefreshControls(sender, e);
            }
        }
        private void BtnEditar_Click(object sender, EventArgs e)
        {
            if (OnlyView)
            {
                MenuNotification menuNotification = new MenuNotification();
                menuNotification.btnOcultarNotificacion.Click += BtnOcultarNotificacion_Click;
                container = new PoperContainer(menuNotification);
                container.Show(btnEditar);
                return;
            }

            FrmNuevaReserva reserva = new FrmNuevaReserva
            {
                IsEditar      = true,
                StartPosition = FormStartPosition.CenterScreen
            };

            reserva.AsignarDatos(this.Reserva);
            reserva.FormClosed += Reserva_FormClosed;
            reserva.ShowDialog();
        }