protected override void AttachChildControls() { if (string.IsNullOrEmpty(this.Page.Request["UserId"]) || !int.TryParse(this.Page.Request.QueryString["UserId"], out this.userId)) { base.GotoResourceNotFound(); } this.txtTradeKey = (System.Web.UI.WebControls.TextBox)this.FindControl("txtTradeKey"); this.txtTradeKey2 = (System.Web.UI.WebControls.TextBox)this.FindControl("txtTradeKey2"); this.txtQuestion = (System.Web.UI.WebControls.TextBox)this.FindControl("txtQuestion"); this.txtAnswer = (System.Web.UI.WebControls.TextBox)this.FindControl("txtAnswer"); this.txtRealName = (System.Web.UI.WebControls.TextBox)this.FindControl("txtRealName"); this.dropRegions = (RegionSelector)this.FindControl("dropRegions"); this.txtAddress = (System.Web.UI.WebControls.TextBox)this.FindControl("txtAddress"); this.txtQQ = (System.Web.UI.WebControls.TextBox)this.FindControl("txtQQ"); this.txtMSN = (System.Web.UI.WebControls.TextBox)this.FindControl("txtMSN"); this.txtTel = (System.Web.UI.WebControls.TextBox)this.FindControl("txtTel"); this.txtHandSet = (System.Web.UI.WebControls.TextBox)this.FindControl("txtHandSet"); this.btnSaveUser = ButtonManager.Create(this.FindControl("btnSaveUser")); this.btnSaveUser.Click += new System.EventHandler(this.btnSaveUser_Click); if (!this.Page.IsPostBack) { this.dropRegions.DataBind(); Hidistro.Membership.Context.Member member = Hidistro.Membership.Context.Users.GetUser(this.userId) as Hidistro.Membership.Context.Member; this.txtHandSet.Text = member.CellPhone; } }
protected override void AttachChildControls() { this.txtRealName = (TextBox)this.FindControl("txtRealName"); this.txtEmail = (TextBox)this.FindControl("txtEmail"); this.dropRegionsSelect = (RegionSelector)this.FindControl("dropRegions"); this.gender = (GenderRadioButtonList)this.FindControl("gender"); this.calendDate = (CalendarPanel)this.FindControl("calendDate"); this.txtAddress = (TextBox)this.FindControl("txtAddress"); this.txtQQ = (TextBox)this.FindControl("txtQQ"); this.txtMSN = (TextBox)this.FindControl("txtMSN"); this.txtTel = (TextBox)this.FindControl("txtTel"); this.txtHandSet = (TextBox)this.FindControl("txtHandSet"); this.btnOK1 = ButtonManager.Create(this.FindControl("btnOK1")); this.Statuses = (SmallStatusMessage)this.FindControl("Statuses"); this.hidePicture = (HiddenField)this.FindControl("fmSrc"); this.smallpic = (Image)this.FindControl("smallpic"); this.btnOK1.Click += this.btnOK1_Click; PageTitle.AddSiteNameTitle("个人信息"); if (!this.Page.IsPostBack) { MemberInfo user = HiContext.Current.User; if (user.UserId != 0) { this.BindData(user); } } }
protected override void AttachChildControls() { if (string.IsNullOrEmpty(this.Page.Request["UserId"]) || !int.TryParse(this.Page.Request.QueryString["UserId"], out this.userId)) { base.GotoResourceNotFound(); } if (HiContext.Current.UserId != this.userId) { base.GotoResourceNotFound(); } this.txtTradeKey = (TextBox)this.FindControl("txtTradeKey"); this.txtTradeKey2 = (TextBox)this.FindControl("txtTradeKey2"); this.txtQuestion = (TextBox)this.FindControl("txtQuestion"); this.txtAnswer = (TextBox)this.FindControl("txtAnswer"); this.txtRealName = (TextBox)this.FindControl("txtRealName"); this.dropRegions = (RegionSelector)this.FindControl("dropRegions"); this.txtAddress = (TextBox)this.FindControl("txtAddress"); this.txtQQ = (TextBox)this.FindControl("txtQQ"); this.txtMSN = (TextBox)this.FindControl("txtMSN"); this.txtTel = (TextBox)this.FindControl("txtTel"); this.txtHandSet = (TextBox)this.FindControl("txtHandSet"); this.btnSaveUser = ButtonManager.Create(this.FindControl("btnSaveUser")); this.txtWW = (TextBox)this.FindControl("txtWW"); this.btnSaveUser.Click += this.btnSaveUser_Click; if (!this.Page.IsPostBack) { this.dropRegions.DataBind(); MemberInfo user = Users.GetUser(this.userId); this.txtHandSet.Text = user.CellPhone; } }
public RegionSelectorProvider(IVideoSourcePicker videoSourcePicker, RegionSelectorViewModel viewModel) { _viewModel = viewModel; _regionSelector = new Lazy <RegionSelector>(() => { var reg = new RegionSelector(videoSourcePicker, viewModel); reg.SelectorHidden += () => SelectorHidden?.Invoke(); return(reg); }); _regionItem = new RegionItem(this); }
internal static Task <Rect> Select(SelectControl2.ModeType mode, Rect previousRegion) { _taskCompletionSource = new TaskCompletionSource <Rect>(); Selectors.Clear(); foreach (var monitor in Monitor.AllMonitorsGranular()) { var selector = new RegionSelector(); selector.Select(monitor, mode, previousRegion, RegionSelected, RegionChanged, RegionAborted); Selectors.Add(selector); } //Return only when the region gets selected. return(_taskCompletionSource.Task); }