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

📄 accountedition.ascx.cs

📁 ibatis的资料的资料资料ibatis的
💻 CS
字号:
namespace NPetshop.Web.UserControls.Accounts
{
	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 AccountEdition.
	/// </summary>
	public class AccountEdition : NPetshop.Presentation.UserControl
	{
		protected System.Web.UI.WebControls.Button ButtonCancel;
		protected System.Web.UI.WebControls.Button ButtonUpdateAccount;
		protected NPetshop.Web.UserControls.Accounts.AccountUI ucAccount;

		private void Page_Load(object sender, System.EventArgs e)
		{
			// Placer ici le code utilisateur pour initialiser la page
		}
		
		public override void DataBind()
		{
			ucAccount.Account = this.WebLocalSingleton.CurrentUser;
		}

		private void ButtonUpdateAccount_Click(object sender, System.EventArgs e)
		{
			if (Page.IsValid)
			{
				AccountAction action = new AccountAction(Context);
				action.Account = ucAccount.Account;

				action.UpdateAccount();
				this.CurrentController.NextView = action.NextViewToDisplay;

				this.WebLocalSingleton.CurrentUser = ucAccount.Account;
			}
		}

		private void ButtonCancel_Click(object sender, System.EventArgs e)
		{
			AbstractWebAction action = new ShowStartPageAction(Context);
			this.CurrentController.NextView = action.NextViewToDisplay;
		}

		#region Code g閚閞

⌨️ 快捷键说明

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