private void button1_Click(object sender, EventArgs e)
        {
            panelCreateBug.BringToFront();

            DateTime    assignTime = DateTime.Now;
            Bug         bug        = new Bug();
            BugBusiness bBug       = new BugBusiness();

            bug.userID_FK = currentUser.id;
            MessageBox.Show(currentUser.id.ToString());
            bug.title       = txtBugTitle.Text;
            bug.deadline    = txtDescription.Text;
            bug.description = txtBugTitle.Text;
            bug.assignTime  = assignTime.ToString();
            bug.priority    = cmbPriority.Text.ToString();


            if (bBug.createBug(bug))
            {
                MessageBox.Show("New Bug Added");
            }
            else
            {
                MessageBox.Show("Some error occur while adding bug");
            }
        }
        private void ManagerForm_Load(object sender, EventArgs e)
        {
            BugBusiness bugB = new BugBusiness();
            Bug         b    = new Bug();

            int count = bugB.getCurrentBugsCount();
            int i     = 1;

            b = bugB.getBug(i);

            StringBuilder sb1 = new StringBuilder();

            while (i <= count)
            {
                if (b.id != 999)
                {
                    sb1.AppendLine("---");
                    sb1.AppendLine(b.title.Trim() + " marked as " + b.priority.Trim());
                    sb1.AppendLine(b.title.Trim() + " status changed to " + b.status.Trim());
                }
                i++;
                b = bugB.getBug(i);
            }
            bugsFeed.Text = sb1.ToString();


            //UserBusiness uB = new UserBusiness();
            //User u = new User();

            //count = uB.getUsersCount();
            //i = 1;

            //u = uB.getUsers(count);

            //StringBuilder sb2 = new StringBuilder();
            //while (i <= count)
            //{
            //    if (b.id != 999)
            //    {

            //        sb1.AppendLine(b.title + " added by " + u.name);
            //        sb1.AppendLine(b.title + " marked as "+ b.priority + " by " + u.name);
            //    }
            //    i++;
            //    u = uB.getUsers(count);
            //}
            //developersFeed.Text = sb2.ToString();
        }