private void BindFormContents() { if (!BLL.Settings.IsCenter) { lkAccount.SetupActivityEditor().SetDefaultActivity(); } else { colLocation.Visible = false; layoutAccount.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } //Warehouse lkWarehouse.Properties.DataSource = BLL.Warehouse.GetWarehouseWithCluster(CurrentContext.UserId); PalletLocation pl = new PalletLocation(); lkPalletLocations.DataSource = PalletLocation.GetAll(); if (currentMode == Modes.QuantityConfirmation) { gridReceives.DataSource = pl.GetReceivesForQtyConfirmation(CurrentContext.UserId); if (CurrentContext.LoggedInUser.UserType == UserType.Constants.STORE) { btnConfirm.Enabled = false; } } }