Ejemplo n.º 1
0
        private void ReBindList(ServiceRequest _request)
        {
            WACListControl   list = getListFromRequest(_request);
            ListView         lv   = getListViewFromRequest(_request);
            WACListViewModel vm   = GetViewModelForControl(list) as WACListViewModel;

            vm.BindListView(lv);
        }
Ejemplo n.º 2
0
        private void ClearListView(ServiceRequest _request)
        {
            WACListControl   list = getListFromRequest(_request);
            ListView         lv   = getListViewFromRequest(_request);
            WACListViewModel lvvm = GetViewModelForControl(list) as WACListViewModel;

            lvvm.ClearListView(list, lv);
        }
Ejemplo n.º 3
0
        private void OpenListView(ServiceRequest _request)
        {
            // binds a listview to a previously populated list
            WACListControl   list = getListFromRequest(_request);
            ListView         lv   = getListViewFromRequest(_request);
            WACListViewModel lvvm = GetViewModelForControl(list) as WACListViewModel;

            lvvm.OpenListViewReadOnly(list, lv);
        }
Ejemplo n.º 4
0
        public override void ConnectControlSpecific(Control _control, ConnectorFactory _factory)
        {
            WACListViewModel vm = ViewModel as WACListViewModel;

            if (vm.ListSource == null)
            {
                vm.ListSource = new MasterDetailDataObject(ParticipantWAC.PrimaryKeyName, ParticipantWAC.PrimaryKeyName);
            }
        }
Ejemplo n.º 5
0
        private void FilteredListViewList(ServiceRequest _request)
        {
            WACListControl   list = getListFromRequest(_request);
            ListView         lv   = getListViewFromRequest(_request);
            WACListViewModel lvvm = GetViewModelForControl(list) as WACListViewModel;

            if (_request.ParmList.Count() < 1)
            {
                lvvm.GetViewList(list, lv);
            }
            else
            {
                lvvm.GetViewList(list, lv, _request.ParmList);
            }
        }