Exemplo n.º 1
0
        public PopulateWithUsers(Form currentForm, DataTable dt,
                                 DataGridNavigation currentPaging,
                                 Display firstOrLastpage,
                                 LoadingCircle currentLoadingCircle)
            : base(currentForm, dt, currentPaging, firstOrLastpage, currentLoadingCircle)
        {
            if (dt.Columns.Count == 0)
            {
                DataManipulation.AddColumnsTheirNamesInDataTable(dt, "Username", "LastLoginDate", "LastLoginTime", "User roles", "IsUserOnline", "CreationDate");

                currentPaging.AllPages = dt;
                currentPaging.FillDataGridWithRecords(Display.FirstPage);
            }
        }
Exemplo n.º 2
0
        public PopulateWithFormsRoles(Form currentForm, DataTable dt,
                                      DataGridNavigation currentPaging,
                                      Display firstOrLastpage,
                                      LoadingCircle currentLoadingCircle)
            : base(currentForm, dt, currentPaging, firstOrLastpage, currentLoadingCircle)
        {
            if (dt.Columns.Count == 0)
            {
                DataManipulation.AddColumnsTheirNamesInDataTable(dt, "FormName", "Roles");

                currentPaging.AllPages = dt;
                currentPaging.FillDataGridWithRecords(Display.FirstPage);
            }
        }
Exemplo n.º 3
0
        public PopulateWithProducts(Form currentForm, DataTable dt,
                                    DataGridNavigation currentPaging,
                                    Display firstOrLastPage,
                                    LoadingCircle currentLoadingCircle)
            : base(currentForm, dt, currentPaging, firstOrLastPage, currentLoadingCircle)
        {
            if (dt.Columns.Count == 0)
            {
                DataManipulation.AddColumnsTheirNamesInDataTable(dt, "Product", "Category", "Vendor", "Price", "Quantity", "Store", "Town");

                currentPaging.AllPages = dt;
                currentPaging.FillDataGridWithRecords(Display.FirstPage);
                currentLoadingCircle.Active = true;
            }
        }