public PaginatedListviewController(PxListView listview, Button btnAnterior, Button btnProximo, PxPageIntegerBox txtNroPagina, GroupBox grpBox, bool contadorElementos)
		{
            this.contadorElementos = contadorElementos;
			mListview = listview;
			this.btnAnterior = btnAnterior;
			this.btnProximo = btnProximo;
			this.grpBox = grpBox;
			this.mOriginalLabel = string.Empty + grpBox.Text;
			this.txtNroPagina = txtNroPagina;
			CurrentPageNr = 1;

            mListview.BeforeNewSelection += Listview_BeforeNewSelection;
            mListview.DeeperLevelSelection += Listview_DeeperLevelSelection;
            txtNroPagina.GoToPage += TxtNroPagina_BeforeNewSelection;
            btnAnterior.Click += btnAnterior_Click;
            btnProximo.Click += btnProximo_Click;
		}
 public PaginatedListviewController(PxListView listview, Button btnAnterior, Button btnProximo, PxPageIntegerBox txtNroPagina, GroupBox grpBox)
     : this(listview, btnAnterior, btnProximo, txtNroPagina, grpBox, false)
 { }
Пример #3
0
        private void InitializeComponent()
        {
            this.lstVwTrustees           = new PxListView();
            this.ColumnHeaderName        = new System.Windows.Forms.ColumnHeader();
            this.ColumnHeaderIsActive    = new System.Windows.Forms.ColumnHeader();
            this.ColumnHeaderDescription = new System.Windows.Forms.ColumnHeader();
            this.ToolBarButtonAdd        = new System.Windows.Forms.ToolBarButton();
            this.ToolBarButtonDelete     = new System.Windows.Forms.ToolBarButton();
            this.ToolBarButtonEdit       = new System.Windows.Forms.ToolBarButton();
            this.pnlToolbarPadding.SuspendLayout();
            this.SuspendLayout();
            //
            //lblFuncao
            //
            this.lblFuncao.Location = new System.Drawing.Point(0, 0);
            this.lblFuncao.Name     = "lblFuncao";
            this.lblFuncao.Text     = "Entidades autorizadas";
            //
            //ToolBar
            //
            this.ToolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.ToolBarButtonAdd, this.ToolBarButtonEdit, this.ToolBarButtonDelete });
            this.ToolBar.ImageList = null;
            this.ToolBar.Name      = "ToolBar";
            //
            //pnlToolbarPadding
            //
            this.pnlToolbarPadding.DockPadding.Left  = 5;
            this.pnlToolbarPadding.DockPadding.Right = 5;
            this.pnlToolbarPadding.Location          = new System.Drawing.Point(0, 24);
            this.pnlToolbarPadding.Name = "pnlToolbarPadding";
            //
            //lstVwTrustees
            //
            this.lstVwTrustees.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.ColumnHeaderName, this.ColumnHeaderIsActive, this.ColumnHeaderDescription });
            this.lstVwTrustees.Dock          = System.Windows.Forms.DockStyle.Fill;
            this.lstVwTrustees.FullRowSelect = true;
            this.lstVwTrustees.HideSelection = false;
            this.lstVwTrustees.Location      = new System.Drawing.Point(0, 52);
            this.lstVwTrustees.MultiSelect   = false;
            this.lstVwTrustees.Name          = "lstVwTrustees";
            this.lstVwTrustees.Size          = new System.Drawing.Size(600, 228);
            this.lstVwTrustees.Sorting       = System.Windows.Forms.SortOrder.Ascending;
            this.lstVwTrustees.TabIndex      = 2;
            this.lstVwTrustees.View          = System.Windows.Forms.View.Details;
            //
            //ColumnHeaderName
            //
            this.ColumnHeaderName.Text  = "Nome";
            this.ColumnHeaderName.Width = 120;
            //
            //ColumnHeaderIsActive
            //
            this.ColumnHeaderIsActive.Text  = "Ativo";
            this.ColumnHeaderIsActive.Width = 56;
            //
            //ColumnHeaderDescription
            //
            this.ColumnHeaderDescription.Text  = "Descrição";
            this.ColumnHeaderDescription.Width = 336;
            //
            //ToolBarButtonAdd
            //
            this.ToolBarButtonAdd.ImageIndex = 0;
            //
            //ToolBarButtonDelete
            //
            this.ToolBarButtonDelete.Enabled    = false;
            this.ToolBarButtonDelete.ImageIndex = 2;
            //
            //ToolBarButtonEdit
            //
            this.ToolBarButtonEdit.Enabled    = false;
            this.ToolBarButtonEdit.ImageIndex = 1;
            //
            //MasterPanelTrustee
            //
            this.Controls.Add(this.lstVwTrustees);
            this.Name = "MasterPanelTrustee";
            this.Controls.SetChildIndex(this.lblFuncao, 0);
            this.Controls.SetChildIndex(this.pnlToolbarPadding, 0);
            this.Controls.SetChildIndex(this.lstVwTrustees, 0);
            this.pnlToolbarPadding.ResumeLayout(false);
            this.ResumeLayout(false);

            //INSTANT C# NOTE: Converted event handlers:
        }