Example #1
0
        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);
            }
        }