Esempio n. 1
0
 private void OnCopyMoveError(object sender, CopyMoveErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         errors.Enqueue(e);
         PrepareWindowAndShow();
     }));
 }
Esempio n. 2
0
        private void Prepare()
        {
            if (errors.Count == 0)
            {
                return;
            }

            try
            {
                CopyMoveErrorEventArgs args = errors.First();

                tblSrcSize.Text  = Utils.GetFileInfoSize(args.Pair.Source);
                tblSrcPath.Text  = args.Pair.Source.FullName;
                tblDestSize.Text = Utils.GetFileInfoSize(new FileInfo(args.Pair.DestFilePath));
                tblDestPath.Text = args.Pair.DestFilePath;

                tblFilesCount.Text = "(" + errors.Count + ")";
            }
            catch
            {
            }
        }