Beispiel #1
0
        public void GetViewList(Control listControl, IDataBoundListControl lv, List <WACParameter> parms)
        {
            Enum state = WACListControl.ListState.ListEmpty;

            try
            {
                ListSource.FList = null;
                if (parms.Count == 0)
                {
                    ListSource.GetFullItemList(DataProvider.GetList);
                }
                else
                {
                    ListSource.GetFilteredItemList(parms, DataProvider.GetFilteredList);
                }
                state = processIDataBoundListControlList(listControl, lv);
            }
            catch (Exception ex)
            {
                throw new Exception("Can not bind IDataBoundListControl " + listControl.ID + " " + ex.Message);
            }
            finally
            {
                ContentStateChanged(listControl, state);
            }
        }
Beispiel #2
0
        public void GetViewList(Control listControl, IDataBoundListControl lv, List <WACParameter> parms, MasterDetailDataObject.FilteredListGetterDelegate _getList)
        {
            Enum state = WACListControl.ListState.ListEmpty;

            try
            {
                ListSource.FList = null;
                ListSource.GetFilteredItemList(parms, _getList);
                state = processIDataBoundListControlList(listControl, lv);
            }
            catch (Exception ex)
            {
                throw new Exception("Can not bind IDataBoundListControl " + listControl.ID + " " + ex.Message);
            }
            finally
            {
                ContentStateChanged(listControl, state);
            }
        }