Exemplo n.º 1
0
 private void OnProgressHandler(ExecutionProgressInfo obj)
 {
     if (OnProgress != null)
     {
         OnProgress(obj);
     }
 }
Exemplo n.º 2
0
 protected void OnProgressHandler(ExecutionProgressInfo obj)
 {
     if (OnProgress != null)
     {
         OnProgress(obj);
     }
 }
Exemplo n.º 3
0
        void reader_OnProgress(ExecutionProgressInfo obj)
        {
            OnProgressHandler(obj);
            QueryCancelEventArgs args = new QueryCancelEventArgs();

            OnQueryCancelHandler(args);
            if (args.Cancel)
            {
                throw new PackageExecutionCancelledException();
            }
        }
Exemplo n.º 4
0
 private void OnProgress(ExecutionProgressInfo progressInfo, int current, int totalCost)
 {
     _progressInfo          = progressInfo;
     _state.Progress        = current * 100 / totalCost;
     _state.ProgressMessage = progressInfo.ModuleName + " : " + progressInfo.Message;
 }