private void button3_Click(object sender, EventArgs e) { assignedUser(); ProjectAssign assign = new ProjectAssign { AssignBy = UserLogin.userId, AssignTo = id, Description = textBox3.Text, BugId = Program.bugId }; ProjectAssignDAO assignDAO = new ProjectAssignDAO(); try { assignDAO.Insert(assign); MessageBox.Show("Task assigned"); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
// A simpler list for the combobox. public BindingList <ProjectsData> GetProjects() { BaseModel project = new ProjectAssign(); return(project.ProjectList()); }