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); } }
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); } }
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; } }