private void BindLookUps() { var movingAverageGroup = new MovingAverageGroup(); movingAverageGroup.LoadByUser(CurrentContext.UserId); lkAccount.Properties.DataSource = movingAverageGroup.DefaultView; lkCategory.Properties.DataSource = CommodityType.GetAllTypes(); }
private void NewInventoryEntry_Load(object sender, EventArgs e) { lkCategory.Properties.DataSource = CommodityType.GetAllTypes(); // load the activity and the physical store names ... so the dialog box shows some context Activity activity = new Activity(); activity.LoadByPrimaryKey(_activityID); textActivity.Text = activity.FullActivityName; PhysicalStore physicalStore = new PhysicalStore(); physicalStore.LoadByPrimaryKey(_physicalStoreID); textStore.Text = string.Format("{0} - {1}", physicalStore.WarehouseName, physicalStore.Name); }