Beispiel #1
0
        public override async void Execute()
        {
            _si.SyncStarted();
            _service = new SyncService2(_si);

            _service.TasksRunning++;
            int result = await RunExecTaskAsync();
            _service.TasksRunning--;

            switch (result)
            {
                case 1:
                    MessageBox.Show("The directories to sync do not exist on this System.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
                case 3:
                    MessageBox.Show("Unexpected Error.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
            }
        }
Beispiel #2
0
        public override async void Execute()
        {
            _si.SyncStarted();
            _service = new SyncService2(_si);

            _service.TasksRunning++;
            int result = await RunExecTaskAsync();

            _service.TasksRunning--;

            switch (result)
            {
            case 1:
                MessageBox.Show("The directories to sync do not exist on this System.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                break;

            case 3:
                MessageBox.Show("Unexpected Error.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                break;
            }
        }