예제 #1
0
        private void Save()
        {
            uomBindingSource.EndEdit();
            UOMs uom = uomBindingSource.Current as UOMs;

            //BindingList<UOMs> OrderList = (BindingList<UOMs>)userBindingSource.DataSource;
            //UOMs UOMs = OrderList[userBindingSource.Position];

            UOMs.SaveEntity(uom);

            BindingList <UOMs> uomList = new BindingList <UOMs>(UOMs.GetEntityList());

            uomBindingSource.DataSource = uomList;

            MessageBox.Show("UOM was saved.");
        }
예제 #2
0
        private void SetupBindings()
        {
            BindingList <UOMs> uomList = new BindingList <UOMs>(UOMs.GetEntityList());

            uomBindingSource.DataSource = uomList;
        }