Exemplo n.º 1
0
        private void SMCDownloader_ProgressChanged(JEMDownloaderProgressType type, int value, string text)
        {
            Invoke((MethodInvoker) delegate
            {
                switch (type)
                {
                case JEMDownloaderProgressType.ACTION:
                    labelCurrent.Text       = text;
                    progressBarGlobal.Value = value;
                    break;

                case JEMDownloaderProgressType.GLOBAL:
                    labelGlobal.Text        = text;
                    progressBarGlobal.Value = value;
                    break;

                default:
                    throw new ArgumentOutOfRangeException(nameof(type), type, null);
                }
            });
        }
Exemplo n.º 2
0
        private void SMCDownloader_ProgressChanged(JEMDownloaderProgressType type, int value, string text)
        {
            Invoke((MethodInvoker) delegate
            {
                switch (type)
                {
                case JEMDownloaderProgressType.ACTION:
                    InternalCurrentText  = text;
                    InternalCurrentValue = value;
                    break;

                case JEMDownloaderProgressType.GLOBAL:
                    InternalGlobalText  = text;
                    InternalGlobalValue = value;
                    break;

                default:
                    throw new ArgumentOutOfRangeException(nameof(type), type, null);
                }
                InternalUpdateProgress();
            });
        }