Esempio n. 1
0
        void _workerThread_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            ScripProgressArgs args = e.UserState as ScripProgressArgs;

            if (args != null)
            {
                lblStatus.Text = String.Format("Scripting {0} [ {1}/{2} ]: {3}", args.objectType, args.current, args.total, args.objectName);
            }
        }
Esempio n. 2
0
        private void OnScriptingProgress(string objType, string objectName, int total, int current)
        {
            if (_workerThread.CancellationPending)
            {
                return;
            }

            ScripProgressArgs args = new ScripProgressArgs();

            args.current    = current;
            args.total      = total;
            args.objectName = objectName;
            args.objectType = objType;
            _workerThread.ReportProgress(0, args);
        }