⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 banner.ascx.cs

📁 ibatis源码及帮助文档(IBatis源码+xsd+帮助)
💻 CS
字号:
namespace NPetshop.Web.UserControls
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;

	using NPetshop.Presentation.Core;
	using NPetshop.Presentation.UserActions;

	/// <summary>
	/// Description r閟um閑 de Banner.
	/// </summary>
	public partial class Banner : NPetshop.Presentation.UserControl
	{

		protected void Page_Load(object sender, System.EventArgs e)
		{
			// Placer ici le code utilisateur pour initialiser la page
		}

		protected void LinkbuttonSignIn_Click(object sender, System.EventArgs e)
		{
			AccountAction action = new AccountAction(Context);
			action.SignIn();
			this.CurrentController.NextView = action.NextViewToDisplay;
		}

		protected void LinkbuttonSignOut_Click(object sender, System.EventArgs e)
		{
			AccountAction action = new AccountAction(Context);
			action.SignOut();
			this.CurrentController.NextView = action.NextViewToDisplay;
		}

		protected void LinkbuttonAccount_Click(object sender, System.EventArgs e)
		{
			AccountAction action = new AccountAction(Context);
			action.EditAccount();
			this.CurrentController.NextView = action.NextViewToDisplay;
		}

		protected void LinkbuttonCart_Click(object sender, System.EventArgs e)
		{
			ShoppinAction action = new ShoppinAction(Context);
			action.ShowShoppingCart();
			this.CurrentController.NextView = action.NextViewToDisplay;
		}

		protected override void OnPreRender(System.EventArgs e)
		{
			bool userLoggedIn = (this.WebLocalSingleton.CurrentUser!= null);

			LinkbuttonSignIn.Visible = ! userLoggedIn;
			LinkbuttonSignOut.Visible = userLoggedIn;		
		}

		#region Code g閚閞?par le Concepteur Web Form
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN? Cet appel est requis par le Concepteur Web Form ASP.NET.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		///		M閠hode requise pour la prise en charge du concepteur - ne modifiez pas
		///		le contenu de cette m閠hode avec l'閐iteur de code.
		/// </summary>
		private void InitializeComponent()
		{

		}
		#endregion

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -