Exemplo n.º 1
0
        private void progressSet(TransferQueue queue)
        {
            if (InvokeRequired)
            {
                Invoke(new Action <TransferQueue>(progressSet), queue);
                return;
            }
            try
            {
                if (lstTransfers.Items != null)
                {
                    int x = queue.Progress;

                    lstTransfers.Items[queue.ID.ToString()].SubItems[2].Text = x + "%";
                    int overallProgress = fsmiddleController.getOverallProgress();
                    showOverallProgress(overallProgress);
                    if (overallProgress == 100)
                    {
                        Console.WriteLine("complete...");

                        unsetControllerSubscriptions(fsmiddleController);
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
Exemplo n.º 2
0
        private void progressSet(TransferQueue queue)
        {
            if (InvokeRequired)
            {
                Invoke(new Action <TransferQueue>(progressSet), queue);
                return;
            }


            int overallProgress = fsmiddleController.getOverallProgress();

            showOverallProgress(overallProgress);
            if (overallProgress == 100)
            {
                Console.WriteLine("complete...");

                unsetControllerSubscriptions(fsmiddleController);
            }
        }