Пример #1
0
        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;
        }
Пример #2
0
 private void CopyAction(object obj)
 {
     m_CopyService.Copy(Name);
 }