예제 #1
0
        private void pictEscribir_Click(object sender, EventArgs e)
        {
            NuevoMensaje newMsg = new NuevoMensaje(user, null);

            newMsg.ShowDialog();
            if (envRec == 0)
            {
                cargarMensajesEnviados();
            }
        }
예제 #2
0
        //
        //BOTONES CARTEL
        //
        private void bResponder_Click(object sender, EventArgs eventArgs, Mensaje msg)
        {
            NuevoMensaje newMsg = new NuevoMensaje(user, msg.Emisor);

            newMsg.tAsunto.Text    = msg.Asunto;
            newMsg.tAsunto.Enabled = false;
            newMsg.ShowDialog();
            if (envRec == 0)
            {
                cargarMensajesEnviados();
            }
            else
            {
                cargarMensajesRecibidos();  //Se pueden enviar mensajes a uno mismo
            }
        }