void ReleaseDesignerOutlets()
        {
            if (FavorilerIcon != null)
            {
                FavorilerIcon.Dispose();
                FavorilerIcon = null;
            }

            if (OkunmamisMesajCount != null)
            {
                OkunmamisMesajCount.Dispose();
                OkunmamisMesajCount = null;
            }

            if (SonMesajText != null)
            {
                SonMesajText.Dispose();
                SonMesajText = null;
            }

            if (UserImg != null)
            {
                UserImg.Dispose();
                UserImg = null;
            }

            if (UserName != null)
            {
                UserName.Dispose();
                UserName = null;
            }
        }
Ejemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (CameraButton != null)
            {
                CameraButton.Dispose();
                CameraButton = null;
            }

            if (CancelUserButton != null)
            {
                CancelUserButton.Dispose();
                CancelUserButton = null;
            }

            if (cnsButtomScroll != null)
            {
                cnsButtomScroll.Dispose();
                cnsButtomScroll = null;
            }

            if (LogOutButton != null)
            {
                LogOutButton.Dispose();
                LogOutButton = null;
            }

            if (MainScroll != null)
            {
                MainScroll.Dispose();
                MainScroll = null;
            }

            if (SaveUserButton != null)
            {
                SaveUserButton.Dispose();
                SaveUserButton = null;
            }

            if (UserImg != null)
            {
                UserImg.Dispose();
                UserImg = null;
            }

            if (UserName != null)
            {
                UserName.Dispose();
                UserName = null;
            }

            if (UserSurname != null)
            {
                UserSurname.Dispose();
                UserSurname = null;
            }
        }
Ejemplo n.º 3
0
        protected void btnSignUp_Click(object sender, EventArgs e)
        {
            if (UserImg.HasFile)
            {
                string FileName = Path.GetFileName(UserImg.PostedFile.FileName);
                //Save files to images folder
                UserImg.SaveAs(Server.MapPath(@"~/assets/img/userPersonalimg/" + FileName));
                fileUploadPath = @"~/assets/img/userPersonalimg/" + FileName;
            }
            else
            {
                fileUploadPath = "";
            }

            //if (Convert.ToInt32(DropCountry.SelectedItem.Value) == 1)
            //{

            //    BL.SignUp(txtUserName.Value, txtEmail.Value, txtPassword.Value, "m", Convert.ToDateTime("1/1/1995"), "kk", fileUploadPath, "kk"
            //          , false, false, false, RBUsertype.SelectedItem.Value, false, txtFullName.Value, Convert.ToInt32(DropCountry.SelectedValue), Label1.Text, txtbio.Text);


            //    Session["LoggedIn"] = true;
            //    Session["UserType"] = RBUsertype.SelectedItem.Text;
            //    Session["FullName"] = txtFullName.Value;
            //    Response.Redirect("index.aspx?FullName=" + txtFullName.Value);

            //}
            //else
            //{

            //    BL.SignUp(txtUserName.Value, txtEmail.Value, txtPassword.Value, "", Convert.ToDateTime("1/1/1995"), "ll", fileUploadPath, TxtGov.Value
            //           , false, false, false, RBUsertype.SelectedItem.Value, false, txtFullName.Value, Convert.ToInt32(DropCountry.SelectedValue), "", txtbio.Text);

            //    Session["LoggedIn"] = true;
            //    Session["UserType"] = RBUsertype.SelectedItem.Text;
            //    Session["FullName"] = txtFullName.Value;
            //    Response.Redirect("index.aspx?FullName=" + txtFullName.Value);

            //}
        }