private void BindLookUps()
 {
     var movingAverageGroup = new MovingAverageGroup();
     movingAverageGroup.LoadByUser(CurrentContext.UserId);
     lkAccount.Properties.DataSource = movingAverageGroup.DefaultView;
     lkCategory.Properties.DataSource = CommodityType.GetAllTypes();
 }
        private void PriceSettings_Load(object sender, EventArgs e)
        {
            SetPermission();
            LoadDecimalFormatings();
            var movingAverageGroup = new MovingAverageGroup();
            movingAverageGroup.LoadByUser(CurrentContext.UserId);
            lkAccount.Properties.DataSource = movingAverageGroup.DefaultView;

            ChangeLayoutByMode();
            ChangeLayoutByItemListedtype();
            if (BLL.Settings.IsCenter)
            {
                XtraMessageBox.Show("This Costing Page is Only Applicable For Hub Costing", "User Management Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                this.Enabled = false;
                return;
            }
        }
 private void BindLookUps()
 {
     var movingAverageGroup = new MovingAverageGroup();
     movingAverageGroup.LoadByUser(CurrentContext.UserId);
     lkAccount.Properties.DataSource = movingAverageGroup.DefaultView;
 }