Exemplo n.º 1
0
            public void AddRequest(RefreshGridRequest refreshGridRequest)
            {
                lock (_locker)
                {
                    if (refreshGridRequest.Reset)
                    {
                        queue.Clear();
                    }

                    queue.Enqueue(refreshGridRequest);

                    if (!worker.IsBusy)
                    {
                        worker.RunWorkerAsync();
                    }
                }
            }
Exemplo n.º 2
0
            public void AddRequest(RefreshGridRequest refreshGridRequest)
            {
                lock (_locker)
                {
                    if (refreshGridRequest.Reset)
                        queue.Clear();

                    queue.Enqueue(refreshGridRequest);

                    if (!worker.IsBusy)
                        worker.RunWorkerAsync();
                }
            }