private void Worker_DoWork(object sender, DoWorkEventArgs e)
        {
            Invoke(new Action(() => { lblProcentage.Text = "Actively copying"; }));

            //_copyService.
            var result = _copyService.Copy(txtSource.Text, txtTarget.Text, _CopyItem);

            if (result.succes)
            {
                result.error = "Success";
            }

            Invoke(new Action(() => { lblProcentage.Text = result.error; }));

            CopyInProgress = false;
        }
Exemple #2
0
 private void CopyAction(object obj)
 {
     m_CopyService.Copy(Name);
 }