Example #1
0
        /// <summary>
        /// Show/hide account menu
        /// </summary>
        private void ShowAccountMenu(bool show)
        {
            PicBoxAccountMenu.Visible  = show;
            BtnAccountSettings.Visible = show;
            BtnLogout.Visible          = show;

            if (show)
            {
                PicBoxAccountMenu.BringToFront();
                BtnAccountSettings.BringToFront();
                BtnLogout.BringToFront();
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (BtnLogin != null)
            {
                BtnLogin.Dispose();
                BtnLogin = null;
            }

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

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

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

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

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

            if (BtnLogout != null)
            {
                BtnLogout.Dispose();
                BtnLogout = null;
            }
        }
Example #3
0
 public void Logout()
 {
     BtnLogout.Click();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     BtnLogout.DataBind();
     BtnMyRentals.DataBind();
 }