Exemplo n.º 1
0
    protected void CancelSwap_Click(object sender, EventArgs e)
    {
        Guid swapGuid = Guid.Parse(Request.QueryString.Get("id"));

        UserClass uc         = new UserClass(Profile.UserName);
        string    userEmail  = uc.PublicEmail.ToLower();
        string    inputEmail = VerifyEmail.Text.ToLower();

        if (userEmail == inputEmail)
        {
            uc.CancelSwap(swapGuid, Profile.UserName);
            CancelSwapPanel.Visible    = false;
            SwapCancelledPanel.Visible = true;
        }
        else
        {
            InvalidEmail.Visible = true;
        }
    }