Пример #1
0
 public override void Remove(Control value)
 {
     if (value is HostedTextBoxBase)
     {
         base.Remove(value);
     }
     else
     {
         RadPageViewPage page = value as RadPageViewPage;
         this.ValidatePage(page);
         if (this.suspendOwnerNotify == (byte)0)
         {
             RadPageViewCancelEventArgs e = new RadPageViewCancelEventArgs(page);
             this.owner.OnPageRemoving(e);
             if (e.Cancel)
             {
                 return;
             }
         }
         base.Remove(value);
         if (this.suspendOwnerNotify != (byte)0)
         {
             return;
         }
         this.owner.OnPageRemoved(new RadPageViewEventArgs(page));
     }
 }
Пример #2
0
        private void SelectedPageChangingEvent(object sender, Telerik.WinControls.UI.RadPageViewCancelEventArgs e)
        {
            if (
                e.Page == pgAdmHome ||
                e.Page == pgBuildingHome ||
                e.Page == pgMaintenanceHome ||
                e.Page == pgPaymentHome ||
                e.Page == pgReportHome ||
                e.Page == pgSectionHome ||
                e.Page == pgTeacherHome ||
                e.Page == pgUserHome ||

                e.Page == pgNewStudentRecord ||
                e.Page == pgEnlistment ||
                e.Page == pgPayment ||
                e.Page == pgLogsHome ||
                e.Page == pgStaffHome
                )
            {
                e.Page.Item.ButtonsPanel.CloseButton.Visibility = ElementVisibility.Collapsed;
            }
            else
            {
                e.Page.Item.ButtonsPanel.CloseButton.Visibility = ElementVisibility.Visible;
            }
        }
        protected internal virtual bool OnItemCollapsing(RadPageViewExplorerBarItem item)
        {
            if (this.Owner != null)
            {
                RadPageViewCancelEventArgs cancelArgs = new RadPageViewCancelEventArgs(item.Page);

                this.Owner.OnPageCollapsing(cancelArgs);
                return(cancelArgs.Cancel);
            }

            return(false);
        }
Пример #4
0
        protected internal virtual void OnPageAdding(RadPageViewCancelEventArgs e)
        {
            if (!this.CanRaiseEvents)
            {
                return;
            }
            EventHandler <RadPageViewCancelEventArgs> eventHandler = this.Events[RadPageView.PageAddingEventKey] as EventHandler <RadPageViewCancelEventArgs>;

            if (eventHandler == null)
            {
                return;
            }
            eventHandler((object)this, e);
        }
Пример #5
0
        protected internal virtual void OnPageRemoving(RadPageViewCancelEventArgs e)
        {
            if (!this.CanRaiseEvents)
            {
                return;
            }

            EventHandler <RadPageViewCancelEventArgs> eh = this.Events[PageRemovingEventKey] as EventHandler <RadPageViewCancelEventArgs>;

            if (eh != null)
            {
                eh(this, e);
            }
        }
Пример #6
0
        protected virtual void OnSelectedPageChanging(RadPageViewCancelEventArgs e)
        {
            if (!this.CanRaiseEvents)
            {
                return;
            }

            EventHandler <RadPageViewCancelEventArgs> eh = this.Events[SelectedPageChangingEventKey] as EventHandler <RadPageViewCancelEventArgs>;

            if (eh != null)
            {
                eh(this, e);
            }
        }
        private void radPageView1_SelectedPageChanging(object sender, Telerik.WinControls.UI.RadPageViewCancelEventArgs e)
        {
            switch (e.Page.Name)
            {
            case "InvoiceRadPageViewPage":
                e.Page.Image = currentStatus;
                OverdueInvoiceReportRadPageViewPageRadPageViewPage.Image = null;
                ReportRadPageViewPage.Image = null;
                break;

            case "OverdueInvoiceReportRadPageViewPageRadPageViewPage":

                Object[] result = this._servicePaidAccountsBL.GetAllInvoiceOverDue();
                OverdueInvoiceradGridView.DataSource = result[0];
                this.gridViewTemplate1.DataSource    = result[1];
                if (this.OverdueInvoiceradGridView.Rows.Count > 0)
                {
                    this.OverdueInvoiceradGridView.ClearSelection();
                    this.OverdueInvoiceradGridView.Rows[0].IsCurrent = false;
                }
                else
                {
                    this.OverdueInvoiceradGridView.TableElement.Text = "No hay factura(s) vencida(S)";;
                }


                e.Page.Image = currentStatus;
                InvoiceRadPageViewPage.Image = null;
                ReportRadPageViewPage.Image  = null;
                break;

            case "ReportRadPageViewPage":
                e.Page.Image = currentStatus;
                InvoiceRadPageViewPage.Image = null;
                OverdueInvoiceReportRadPageViewPageRadPageViewPage.Image = null;
                break;

            default:
                break;
            }
        }
Пример #8
0
        public override void Remove(Control value)
        {
            RadPageViewPage page = value as RadPageViewPage;

            this.ValidatePage(page);

            if (this.suspendOwnerNotify == 0)
            {
                RadPageViewCancelEventArgs cancelArgs = new RadPageViewCancelEventArgs(page);
                this.owner.OnPageRemoving(cancelArgs);

                if (cancelArgs.Cancel)
                {
                    return;
                }
            }

            base.Remove(value);

            if (this.suspendOwnerNotify == 0)
            {
                this.owner.OnPageRemoved(new RadPageViewEventArgs(page));
            }
        }
Пример #9
0
        public override void Add(Control value)
        {
            RadPageViewPage page = value as RadPageViewPage;

            this.ValidatePage(page);

            if (this.suspendOwnerNotify == 0)
            {
                RadPageViewCancelEventArgs args = new RadPageViewCancelEventArgs(page);
                this.owner.OnPageAdding(args);

                if (args.Cancel)
                {
                    return;
                }
            }

            base.Add(value);

            if (this.suspendOwnerNotify == 0)
            {
                this.owner.OnPageAdded(new RadPageViewEventArgs(page));
            }
        }
Пример #10
0
 private void radPageView1_SelectedPageChanging(object sender, Telerik.WinControls.UI.RadPageViewCancelEventArgs e)
 {
     e.Cancel = true;
 }