protected JobBase(JobBase job) { if (job.grades != null) { this.grades = new Grade[job.grades.Length]; for (int i = 0; i < job.grades.Length; i++) { this.grades[i] = new Grade(job.grades[i]); } this.gradeNumber = job.gradeNumber; this.name = job.name; this.images = job.images; } }
private void listViewJobs_SelectedIndexChanged(object sender, EventArgs e) { ListView.SelectedListViewItemCollection selectedItems = this.listViewJobs.SelectedItems; if (selectedItems.Count == 0) return; ListViewItem selectedItem = selectedItems[0]; this.selectedJob = selectedItem.Tag as JobBase; if (this.selectedJob != null) this.pictureBoxJob.Image = this.selectedJob.Image; }