private void PlatformDriver_RecordingEvent(object sender, RecordingEventArgs args) { try { switch (args.EventType) { case eRecordingEvent.ElementRecorded: ElementActionCongifuration elementAction = (ElementActionCongifuration)args.EventArgs; ElementRecordedHandler(elementAction); break; case eRecordingEvent.PageChanged: PageChangedEventArgs pageChanged = (PageChangedEventArgs)args.EventArgs; PlatformDriverPageChangedHandler(pageChanged); break; case eRecordingEvent.StopRecording: RecordingNotificationEvent?.Invoke(this, args); break; } } catch (Exception ex) { Reporter.ToLog(eLogLevel.ERROR, "Error in Element recording event handler while recording", ex); } }
private void pageControlKPItarget_PreviewPageChange(object sender, PageChangedEventArgs args) { _vm.currentGridIndicator = "KPITarget"; //List<Object> items = pageControlKPItarget.ItemsSource.ToList(); //int count = items.Count; }
private void PlatformDriverPageChangedHandler(PageChangedEventArgs args) { try { POMObjectRecordingHelper newPOMHelper = null; if (ListPOMObjectHelper != null && ListPOMObjectHelper.Count > 0) { var obj = ListPOMObjectHelper.FirstOrDefault(s => s.PageURL == args.PageURL); if (obj == null && !string.IsNullOrEmpty(args.PageTitle) && !string.IsNullOrEmpty(args.PageURL)) { newPOMHelper = GetNewPOM(args.PageTitle, args.PageURL, args.ScreenShot); ListPOMObjectHelper.Add(newPOMHelper); CurrentPOM = newPOMHelper.ApplicationPOM; } else if (!(CurrentPOM.PageURL == obj.PageURL)) { CurrentPOM = obj.ApplicationPOM; } } else { newPOMHelper = GetNewPOM(args.PageTitle, args.PageURL, args.ScreenShot); CurrentPOM = newPOMHelper.ApplicationPOM; ListPOMObjectHelper = new List <POMObjectRecordingHelper>(); ListPOMObjectHelper.Add(newPOMHelper); } AddBrowserAction(args.PageTitle, args.PageURL); } catch (Exception ex) { Reporter.ToLog(eLogLevel.ERROR, "Error in Page change event handler while recording", ex); } }
/// <summary> /// 刷新事件 /// </summary> /// <param name="sender"></param> /// <param name="args"></param> /// <param name="IsRefresh"></param> private void _clinicalTimelineView_PageRefresh(object sender, PageChangedEventArgs args, ref bool IsRefresh) { //var startDate = new DateTime(2016, 1, 1); //if (ipdto != null && ipdto.Dt_acpt != null) //{ // if (DateTime.TryParse(ipdto.Dt_acpt.ToString(), out startDate)) ; //} else //{ // ipdto = viewmodel.GetIpBasicInfo(ent4BannerDto.Id_ent); // if (DateTime.TryParse(ipdto.Dt_acpt.ToString(), out startDate)) ; //} DateTime dtmp = DateTime.Today; var endDate = new DateTime(dtmp.Year, dtmp.Month, dtmp.Day, 23, 59, 59); IsRefresh = true; var param = new OrSrvSplitParamDTO(); param.Id_ens = ent4BannerDto.Id_ent; //param.Dt_split_start = DiagTreatInit.dtacept; param.Dt_split_start = viewmodel.dtacept; param.Dt_split_end = endDate; viewmodel.refreshData(param); //this.viewmodel.setKeyPointData(ent4BannerDto.Id_ent, DiagTreatInit.dtacept, // endDate, DiagTreatInit.dtacept); viewmodel.setKeyPointData(ent4BannerDto.Id_ent, viewmodel.dtacept, endDate, viewmodel.dtacept); InitTimeline(); }
protected void PagerUser_PageChanged(object sender, PageChangedEventArgs e) { Role role = Module.RoleGetById(Convert.ToInt32(Request.QueryString["RoleId"])); rptUsers.DataSource = role.Users; rptUsers.DataBind(); }
protected void DoPageChanged(bool absolute, int n) { PageChangedEventArgs args = new PageChangedEventArgs(CurrentPage, absolute ? n : CurrentPage + n); if (OnPageChanged != null) OnPageChanged(this, args); CurrentPage = args.NewPageIndex; }
protected virtual void OnPageIndexChanged(PageChangedEventArgs e) { if (PageIndexChanged != null) { PageIndexChanged(this, e); } }
private void DoRecording() { string name = "Name_" + Convert.ToString(i); ElementInfo eInfo = new ElementInfo(); eInfo.ElementName = name; ElementActionCongifuration eleArgs = new ElementActionCongifuration(); if (i == 1 || i == 3) { eleArgs.LocateBy = eLocateBy.ByName.ToString(); eleArgs.LocateValue = name; eleArgs.ElementValue = "aaa"; eleArgs.Operation = "SetText"; eleArgs.Type = "TextBox"; eleArgs.Description = "input Text " + name; eInfo.ElementTypeEnum = eElementType.TextBox; } else { eleArgs.LocateBy = eLocateBy.ByID.ToString(); eleArgs.LocateValue = name; eleArgs.ElementValue = "cc"; eleArgs.Operation = "Click"; eleArgs.Type = "Button"; eleArgs.Description = "input button " + name; eInfo.ElementTypeEnum = eElementType.Button; } if (LearnAdditionalDetails) { eleArgs.LearnedElementInfo = eInfo; } PageChangedEventArgs pageArgs = new PageChangedEventArgs(); if (i != 2) { pageArgs.PageURL = "www.google.com"; pageArgs.PageTitle = "Google"; } else { pageArgs.PageURL = "www.new.com"; pageArgs.PageTitle = "New"; } OnRecordingEvent(new RecordingEventArgs() { EventType = eRecordingEvent.PageChanged, EventArgs = pageArgs }); OnRecordingEvent(new RecordingEventArgs() { EventType = eRecordingEvent.PageChanged, EventArgs = eleArgs }); i++; }
protected virtual void OnPageChanged(PageChangedEventArgs e) { if (PageChanged != null) { DataBind(); PageChanged(this, e); } }
private void PdfViewerControl_PageChanged(object sender, PageChangedEventArgs e) { if (Device.RuntimePlatform == Device.Windows) { popupLayout.IsVisible = false; } pageNumberEntry.Text = e.PageNumber.ToString(); }
protected void pgValidFrom_OnPageChanged(object sender, PageChangedEventArgs e) { int count; rptValidFrom.DataSource = Module.SailsPriceConfigGetAllBySailsTripAndOption(_trip, Option, pgValidFrom.PageSize, pgValidFrom.CurrentPageIndex, out count); pgValidFrom.AllowCustomPaging = true; pgValidFrom.VirtualItemCount = count; rptValidFrom.DataBind(); }
private void Pager_PageChanged(Pager sender, PageChangedEventArgs args) { if (imageList.Count == 0) { return; } UpdateCollection(args.CurrentPage); }
private void OnPageChanged() { var eventArgs = new PageChangedEventArgs(PageIndex, PageSize) { RoutedEvent = PageChangedEvent, Source = this }; RaiseEvent(eventArgs); }
protected void Pager_PageChanged(object src, PageChangedEventArgs e) { this.Pager.CurrentPageIndex = e.NewPageIndex; string searchType = BaseUserControl.RequestString("SearchType"); string keyword = base.Request.Form["Author"]; int listType = BaseUserControl.RequestInt32("ListType"); this.AuthorsBindData(listType, searchType, keyword); }
private void _printPreview_PageChanged(object sender, PageChangedEventArgs e) { drawingCanvas.Width = e.DocumentPage.Size.Width; drawingCanvas.Height = e.DocumentPage.Size.Height; drawingCanvas.RemoveAll(); drawingCanvas.AddVisual(e.DocumentPage.Visual); Grid.IsEnabled = true; }
protected void DoPageChanged(bool absolute, int n) { PageChangedEventArgs args = new PageChangedEventArgs(CurrentPage, absolute ? n : CurrentPage + n); if (OnPageChanged != null) { OnPageChanged(this, args); } CurrentPage = args.NewPageIndex; }
protected void pgrPhoto_PageChanged(object sender, PageChangedEventArgs e) { if (IsPostBack || ((!HasCachedOutput) || Page.User.Identity.IsAuthenticated)) { BindPhotos(); // remember the current album page for future use CurrentPhotoPage = pgrPhotos.CurrentPageIndex + 1; } }
protected void pgrAlbums_PageChanged(object sender, PageChangedEventArgs e) { BindAlbums(); if (IsPostBack) { // remember the current album page for future use CurrentAlbumPage = pgrAlbums.CurrentPageIndex + 1; // reset the current photo page variable, we are at the album page not a photo page CurrentPhotoPage = 0; } }
/// <summary> /// /// </summary> /// <param name="src"></param> /// <param name="e"></param> protected void gpager_view_PageChanged(object src, PageChangedEventArgs e) { Control controlGrid = Page.FindControl("gpager_view"); if (controlGrid != null) { GridPager Grid = (GridPager)controlGrid; Grid.CurrentPageIndex = e.NewPageIndex; BindGridView(); } }
private void OnPageChangedCommand(PageChangedArgs parameter) { if (parameter == null) { return; } PageChangedEventArgs e = parameter.Settings; if (LoadOptions != null && e != null) { LoadOptions.FirstResult = e.PageIndex * e.ItemsPerPage; LoadAlbums(); } }
/// <summary> /// Adapter Page Changed Event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void adapter_PageChanged(object sender, PageChangedEventArgs e) { DataTable dataTable = this.adapter.GetPage(this.adapter.CurrentPage); // DataTable to hold all of this page's data this.MainTformerdataGridView.DataSource = dataTable.AsDataView(); // Display the dats in the DataGridView this.currentPageTextBox.Text = this.adapter.CurrentPage + 1 + ""; // Sets the current page number in the text box bool hasNext = this.adapter.HasNext; // Check if there is another page after this one bool hasPrev = this.adapter.HasPrevious; // Check if there is a page before this one // Enable/disable the buttons depending on the page number this.nextPageBtn.Enabled = hasNext; this.lastPageBtn.Enabled = hasNext; this.previousPageBtn.Enabled = hasPrev; this.firstPageBtn.Enabled = hasPrev; }
protected void xsPage_PageChanged(object sender, PageChangedEventArgs e) { PagerParameter pagepara = new PagerParameter(); pagepara.DbConn = GlabalString.DBString; pagepara.XsPager = xsPage; pagepara.Sql = pageLogic.QueryUser(ddlGroup.SelectedValue); pagepara.OrderBy = "group_id"; if (!"G001".Equals(LoginUser.LoginUserGroup)) { gvUser.Columns[2].Visible = false; } gvUser.DataSource = xsPageHelper.BindPager(pagepara, e); gvUser.DataBind(); }
private void ContextOnCurPageChanged(object sender, PageChangedEventArgs args) { if (!(_testPage.Tag is int)) { return; } int page = args.CurPageId; if (page == (int)_testPage.Tag) { _testPage.Show(); } else { _testPage.Hide(); } }
// *********************************************************************** // *********************************************************************** // PRIVATE GoToPage // Sets the current page index private void GoToPage(int pageIndex) { // Prepares event data PageChangedEventArgs e = new PageChangedEventArgs(); e.OldPageIndex = CurrentPageIndex; e.NewPageIndex = pageIndex; // Updates the current index CurrentPageIndex = pageIndex; // Fires the page changed event OnPageIndexChanged(e); //get current content GetContent(); }
private void MusicPageChanged(object sender, PageChangedEventArgs e) { //需要刷新界面并且当前指向为同一页,因为如果不是同一页,由于刚刚赋值,刷新后就会又变成了旧值 if (e.IsRefresh && FMusicPage.Source?.OriginalString != null && e.PageSource.OriginalString.Contains(FMusicPage.Source.OriginalString)) { FMusicPage.NavigationService.Refresh(); } else { FMusicPage.Source = e.PageSource; } MusicPageSwitchedUtil.InvokeOfCanPrevious(true); MusicPageSwitchedUtil.InvokeOfCanNext(false); }
/// <summary> /// 页码更改 /// </summary> /// <param name="pageIndex"></param> internal void OnPageChanging(int pageIndex) { if (pageIndex < 1) { pageIndex = 1; } if (pageIndex > this.TotalPageCount) { pageIndex = this.TotalPageCount; } this.PageIndex = pageIndex; if (PageChangedEventArgs.PageIndex == pageIndex && PageChangedEventArgs.PageSize == PageSize) { return; } PageChangedEventArgs = new PageChangedEventArgs() { PageSize = this.PageSize, PageIndex = pageIndex }; PageChanged?.Invoke(this, PageChangedEventArgs); }
/// <summary> /// Azione di spostamento pagina /// </summary> /// <param name="pageNumber"></param> private void PerformPageActionButtonClick(int pageNumber) { PagingContext pagingContext = this.GetPagingContext(); pagingContext.PageNumber = pageNumber; if (this.OnPageChanged != null) { PageChangedEventArgs args = new PageChangedEventArgs(pagingContext); // Invio evento di paginazione this.OnPageChanged(this, args); // aggiornato paging context dagli eventargs pagingContext = args.PagingContext; } // Impostazione oggetto paginazione this.SetPagingContext(pagingContext); // Aggiornamento dei controlli di paginazione this.RefreshControls(pagingContext); }
/// <summary> /// 分页执行函数 /// </summary> /// <param name="e"></param> public override void OnExecutePageChangedCommand(PageChangedEventArgs e) { Utility.LogHelper.Info(e.PageIndex.ToString() + " " + e.PageSize); getPageData(e.PageIndex, e.PageSize); }
private void RaisePreviewPageChange(uint OldPage, uint NewPage) { PageChangedEventArgs args = new PageChangedEventArgs(PreviewPageChangeEvent, OldPage, NewPage, TotalPages); RaiseEvent(args); }
/// <summary> /// Raises the PageSelectedChanged event. This allows you to provide a custom handler for the event. /// </summary> /// <param name="e"></param> protected virtual void OnPageSelectedChanged(PageChangedEventArgs e) { if (PageSelectedChanged != null) PageSelectedChanged(this, e); }
/// <summary> /// Sets the current page index /// </summary> /// <param name="pageIndex"></param> private void GoToPage(int pageIndex) { // Prepares event data PageChangedEventArgs e = new PageChangedEventArgs(); e.OldPageIndex = CurrentPageIndex; e.NewPageIndex = pageIndex; // Updates the current index CurrentPageIndex = pageIndex; // Fires the page changed event OnPageSelectedChanged(e); // Binds new data OnDataBinding(e); }
private void RaisePreviewPageChange(uint oldPage, uint newPage) { var args = new PageChangedEventArgs(PreviewPageChangeEvent, oldPage, newPage, TotalPages); RaiseEvent(args); }
private void PaggingControl_PreviewPageChange(object sender, PageChangedEventArgs args) { var items = PaggingControl.ItemsSource.ToList(); var count = items.Count; }
private void pageControl_PageChanged(object sender, PageChangedEventArgs args) { List<Object> items = pageControl.ItemsSource.ToList(); int count = items.Count; }
protected void AspNetPager_PageChanged(object src, PageChangedEventArgs e) { AspNetPager.CurrentPageIndex = e.NewPageIndex; BindData(AspNetPager.CurrentPageIndex); }
protected void AspNetPager_PageChanged(object sender, PageChangedEventArgs e) { AspNetPager.CurrentPageIndex = e.NewPageIndex; BindCommentData(e.NewPageIndex); }
protected void Pager_PageChanged(object src, PageChangedEventArgs e) { this.Pager.CurrentPageIndex = e.NewPageIndex; this.CommentBindData(); }
protected void Pager1_PageIndexChanged(object sender, PageChangedEventArgs e) { Response.Write(e.CurrentPageIndex); }