Esempio n. 1
0
        private void InitalizeDataGrids()
        {
            DGVMainData          = new DataGridViewNew();
            DGVMainData.Location = new Point(0, LocationHeightStart);
            DGVMainData.Size     = new Size(Size.Width, Size.Height - LocationHeightStart);
            DGVMainData.Visible  = true;

            Controls.Add(DGVMainData);
        }
Esempio n. 2
0
        private void initializeGrid()
        {
            grid = new DataGridViewNew()
            {
                Location = new Point(0, 50),
                Size     = new Size(Size.Width, Size.Height - 100),
            };
            grid.setName(DataGridViewNew.DGVMainDataNames.bin.ToString());

            Controls.Add(grid);
        }
Esempio n. 3
0
        private void addItemsToGrid(DataGridViewNew grid)
        {
            var deleted = true;
            var query   = queries.getGridViewItem(deleted);

            foreach (var item in query)
            {
                grid.Rows.Add(item.id, item.name, item.category, item.status,
                              item.room, item.wardorobe, item.shelf);
            }

            grid.changeIdColumnVisableToFalse();
        }
Esempio n. 4
0
        private void InitalizeDataGrids()
        {
            var sizeWidth = 300;

            DGVLastItems          = new DataGridViewNew();
            DGVLastItems.Location = new Point(Width - sizeWidth, LocationHeightStart);
            DGVLastItems.setName(DataGridViewNew.DGVMainDataNames.lastItems.ToString());
            DGVLastItems.Size = new Size(sizeWidth, DGVHeight - (DGVHeight / 2));
            DTVLastItemsFillColumns();

            Controls.Add(DGVLastItems);

            DGVMainData          = new DataGridViewNew();
            DGVMainData.Location = new Point(0, LocationHeightStart);
            DGVMainData.Size     = new Size(DGVMainWidth, DGVHeight);
            DGVMainData.Visible  = false;

            Controls.Add(DGVMainData);
        }