Ejemplo n.º 1
0
    protected void DeclineSwapBut_Click(object sender, ImageClickEventArgs e)
    {
        UserClass uc          = new UserClass(Profile.UserName);
        Guid      requestGuid = Guid.Parse(RequestGuidLabel.Text);

        uc.DeclineSwapRequest(requestGuid);


        MessageClass mc      = new MessageClass();
        string       msgTo   = OtherUser.Text;
        string       msgFrom = "veSwap";
        string       msg     = "Sorry, " + uc.PublicFirstName + " is not interested in trading their  " + MyVeLabel.Text + "  at this time. Your " +
                               " request has been denied. Thanks anyways!";

        mc.SendMsg(msgFrom, msgTo, msg, "QM");
        Response.Redirect("~/MyProfile/MyProfile.aspx?DeclinedSwap=true");
    }