Exemple #1
0
        private void Duplicate(IList <AFile> files)
        {
            string task_name = $"{Properties.Resources.Copying} {string.Join(", ", files.Select(file => file.Name))}";

            if (TaskList.ContainsKey(task_name))
            {
                return;
            }
            TaskList.Add(task_name, Task.Factory.StartNew(() =>
            {
                ShowErrMessage(Adb.Copy(Adb.Path, files, task_name));
                Reflush();
                TaskList.Remove(task_name);
            }));
        }
Exemple #2
0
        private void Duplicate(string files)
        {
            string task_name = $"{Properties.Resources.Copying} {files.Replace("\n", ", ")}";

            if (TaskList.ContainsKey(task_name))
            {
                return;
            }
            TaskList.Add(task_name, Task.Factory.StartNew(() =>
            {
                ShowErrMessage(Adb.Copy(Adb.Path, files, CoverTip, task_name));
                Reflush();
                TaskList.Remove(task_name);
            }));
        }