private void FormFixBug_Load(object sender, EventArgs e) { BugController bugController = new BugController(); bug = bugController.getBugById(id); Image img = byteArrayToImage(bug.Image); pictureBox1.Image = img; txtBugId.Text = Convert.ToString(bug.Id); txtBugName.Text = bug.BugName; txtProjectName.Text = bug.ProjectName; txtPackageName.Text = bug.PackageName; txtClassName.Text = bug.ClassName; txtMethodName.Text = bug.MethodName; txtPreviousCode.Text = bug.CodeBlock; }