private void ParticipateInSelectedJob() { var jobToParticipateIn = (DistributedJob)JobListBox.SelectedItem; if (jobToParticipateIn == null) { return; } Participating = true; P2PEditor.GuiLogMessage( string.Format("Preparing to participate in job {0} ({1}).", jobToParticipateIn.Name, jobToParticipateIn.Guid), NotificationLevel.Info); var jobParticipationWorker = new JobParticipationWorker(P2PEditor, JobListManager, jobToParticipateIn, Dispatcher); jobParticipationWorker.RunWorkerCompleted += JobParticipationWorkerRunWorkerCompleted; jobParticipationWorker.RunWorkerAsync(); }
private void ParticipateInSelectedJob() { var jobToParticipateIn = (DistributedJob)JobListBox.SelectedItem; if (jobToParticipateIn == null) { return; } Participating = true; P2PEditor.GuiLogMessage( string.Format(Properties.Resources.Preparing_to_participate_in_job__0____1___, jobToParticipateIn.Name, jobToParticipateIn.Guid), NotificationLevel.Info); var jobParticipationWorker = new JobParticipationWorker(P2PEditor, JobListManager, jobToParticipateIn, Dispatcher); jobParticipationWorker.RunWorkerCompleted += JobParticipationWorkerRunWorkerCompleted; jobParticipationWorker.RunWorkerAsync(); }