/// <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(); } }
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; } }
public void Logout() { BtnLogout.Click(); }
protected void Page_Load(object sender, EventArgs e) { BtnLogout.DataBind(); BtnMyRentals.DataBind(); }