Ejemplo n.º 1
0
    protected void btnSend_Click1(object sender, EventArgs e)
    {
        if (Session["getme"] != null)
        {
            if (isFormGood2())
            {
                Composer   su   = new Composer();
                ComposeDAL ldal = new ComposeDAL();

                su.subject  = txtSubject.Text;
                su.message  = txtMessage.Text;
                su.sender   = Session["User"].ToString();
                su.reciever = Session["getme"].ToString();
                ldal.addMessage(su);
                Session["getme"]   = null;
                lbldd.Visible      = false;
                lblMessage.Visible = false;
                lblSubject.Visible = false;
                ddPerson.Visible   = false;
                ddReciever.Visible = false;
                Label2.Visible     = false;
                Label3.Visible     = false;
                txtMessage.Visible = false;
                txtSubject.Visible = false;
                btnBack.Visible    = false;
                btnSend.Visible    = false;
                Label1.Visible     = false;
                lblSent.Visible    = true;
            }
        }
        else if (isFormGood())
        {
            doSignup();
        }
    }
Ejemplo n.º 2
0
    public void doSignup()
    {
        Composer   su   = new Composer();
        ComposeDAL ldal = new ComposeDAL();

        su.subject = txtSubject.Text;
        su.message = txtMessage.Text;
        su.sender  = Session["User"].ToString();
        if (ddReciever.Enabled == false)
        {
            su.reciever = ddPerson.SelectedValue;
        }
        else
        {
            su.reciever = ddReciever.SelectedValue;
        }

        ldal.addMessage(su);
        lbldd.Visible      = false;
        lblMessage.Visible = false;
        lblSubject.Visible = false;
        ddPerson.Visible   = false;
        ddReciever.Visible = false;
        Label2.Visible     = false;
        Label3.Visible     = false;
        txtMessage.Visible = false;
        txtSubject.Visible = false;
        btnBack.Visible    = false;
        btnSend.Visible    = false;
        Label1.Visible     = false;
        lblSent.Visible    = true;
    }
Ejemplo n.º 3
0
    public void doSignup()
    {
        Composer   su   = new Composer();
        ComposeDAL ldal = new ComposeDAL();

        su.subject  = txtSubject.Text;
        su.message  = txtMessage.Text;
        su.sender   = Session["User"].ToString();
        su.reciever = ddReciever.SelectedValue;
        ldal.addMessage(su);
    }
Ejemplo n.º 4
0
    protected void btnSend_Click1(object sender, EventArgs e)
    {
        if (Session["getme"] != null)
        {
            if (isFormGood2())
            {
                Composer   su   = new Composer();
                ComposeDAL ldal = new ComposeDAL();

                su.subject  = txtSubject.Text;
                su.message  = txtMessage.Text;
                su.sender   = Session["User"].ToString();
                su.reciever = Session["getme"].ToString();
                ldal.addMessage(su);
                Session["getme"] = null;
            }
        }
        else if (isFormGood())
        {
            doSignup();
        }
    }