示例#1
0
        private DataView GetData(int roleId, int parentMenuId)
        {
            Services.CommonService objservice = new Services.CommonService();
            List <RMS.Common.BusinessEntities.Menu.Menu> MenuList = objservice.GetAuthoriseMenuList(Convert.ToInt32(Session["EmpID"]));
            DataTable dt = abc.ToDataTable <Common.BusinessEntities.Menu.Menu>(MenuList);
            DataView  da = new DataView(dt);

            da.RowFilter = "ParentID = " + parentMenuId;
            return(da);
        }
        public async Task AddElementAsync(string name, int sleepTime)
        {
            await CommonService.WaitInThread(sleepTime);

            queue.Enqueue(name);
        }
示例#3
0
        public async Task <BlockingCollection <string> > GetParticipantsAsync(int sleepTime)
        {
            await CommonService.WaitInThread(sleepTime);

            return(_participantWithLimit);
        }
示例#4
0
        public async Task AddParticipantAsync(string participantName, int sleepTime)
        {
            await CommonService.WaitInThread(sleepTime);

            _participantWithLimit.Add(participantName);
        }
        public async Task UpdateItemAsync(int key, string oldValue, string newValue, int sleepTime)
        {
            await CommonService.WaitInThread(sleepTime);

            dictionary.TryUpdate(key, newValue, oldValue);
        }
        public async Task AddItemAsync(int key, string value, int sleepTime)
        {
            await CommonService.WaitInThread(sleepTime);

            dictionary.TryAdd(key, value);
        }
        public async Task AddElementsAsync(string[] names, int sleepTime)
        {
            await CommonService.WaitInThread(sleepTime);

            stack.PushRange(names);
        }
        public async Task AddElementAsync(string name, int sleepTime)
        {
            await CommonService.WaitInThread(sleepTime);

            stack.Push(name);
        }