示例#1
0
        public LiveUpdateHandler(MainPage mainPage)
        {
            _mainPage = mainPage;

            ListAsmx = Constants.InitParams.ListAsmx(_mainPage);
            ListsService = new ListsSoapClient("ListsSoap", ListAsmx);

            ListsService.GetListItemsCompleted += ListsService_GetListItemsCompleted;
            _listHelper = new ListHelper(_mainPage);
            _listHelper.UpdateComplete += listHelper_UpdateComplete;
        }
示例#2
0
 public ListSettings(SPList list,MainPage page)
 {
     InitializeComponent();          
     _list = list;
     _listNameOld = list.Title;
     _listDescriptionOld = list.Description;
     this.DataContext = _list;
     _helper = new ListHelper(page);
     _page = page;
     _helper.UpdateListComplete += handler_ListUpdated;
     rdoQuickLaunchNo.IsEnabled = false;
     rdoQuickLaunchYes.IsEnabled = false;
 }
示例#3
0
        public DataHandler(IExcelParams excelParams, MainPage page)
        {
            _page = page;
            _excelParams = excelParams;
            UpdateHandlerQueue = new List<RowHandler>();
            _listHelper = new ListHelper(page);

            ListAsmx = Constants.InitParams.ListAsmx(page);
            ListOrgAsmx = Constants.InitParams.ListOrgAsmx(page);
            FrequencyAsmx = Constants.InitParams.FrequencyAsmx(page);

            _listHelper.UpdateComplete += listHelper_UpdateComplete;
            _listHelper.DeleteComplete += listHelper_DeleteComplete;
            _listsService = new ListsSoapClient("ListsSoap", ServiceParamStatHelper.SetParams(ListAsmx, ServiceParamStatHelper.Actions.QUERY, "UNKNOWN"));
            _listsOrgService = new ListsSoapClient("ListsSoap", ServiceParamStatHelper.SetParams(ListOrgAsmx, ServiceParamStatHelper.Actions.QUERY, Constants.OrgStructure));
            _frequencyService = new ListsSoapClient("ListsSoap", ServiceParamStatHelper.SetParams(FrequencyAsmx, ServiceParamStatHelper.Actions.QUERY, "FrequencyValidation"));

            _updateTimer = new DispatcherTimer();
            _updateTimer.Interval = new TimeSpan(0, 0, Constants.UpdateTimerOffset);
            _updateTimer.Tick += updateTimer_Tick;
            _updateTimer.Start();

            _listsOrgService.GetListItemsCompleted += ListsOrgService_GetListItemsCompleted;
            _listsService.GetListCollectionCompleted += Service_GetListCollectionCompleted;
            _listsService.GetListItemsCompleted += Service_GetListItemsCompleted;
            //_listsService.GetListAndViewCompleted += Service_GetListAndViewCompleted;
            _frequencyService.GetListItemsCompleted += FrequencyService_GetListItemsCompleted;

            ListSettingsAgent = new ListSettingsServiceAgent(ListOrgAsmx);
            BusinessUnitAgent = new BusinessUnitServiceAgent(Constants.InitParams.SiteRootURL(page), page._sLog);
            HelperAgent = new HelperServiceAgent();
            _dispatcher = Deployment.Current.Dispatcher;
            InitiateStaticData();
            if (_current == null)
            {
                _current = this;
            }
        }
示例#4
0
 void listSettingsDialog_Closed(object sender, EventArgs e)
 {
     ListHelper _helper;
     _helper = new ListHelper(this);
 }