private void OnFormLoad(object sender, EventArgs e) { recLocationDal = new RecLocationDal(); BindingCombox(); if (recLocationEntity != null) { this.Text = "设置推荐货位商品。"; txtCode.Enabled = false; layoutControlItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; ShowEditInfo(recLocationEntity); } }
private void OnFormLoad(object sender, EventArgs e) { ImageCollection ic = AppResource.LoadToolImages(); barManager1.Images = ic; toolRefresh.ImageIndex = (int)AppResource.EIcons.refresh; toolSearch.ImageIndex = (int)AppResource.EIcons.search; toolModify.ImageIndex = (int)AppResource.EIcons.edit; toolClear.ImageIndex = (int)AppResource.EIcons.delete; recLocationDal = new RecLocationDal(); LoadDataAndBindGrid(); }