private void button2_Click_1(object sender, EventArgs e)
        {
            BugInformationDAO       bugInformationDAO = new BugInformationDAO();
            BugInformationViewModel bugInformation    = new BugInformationViewModel
            {
                Cause    = textBox2.Text,
                Symptons = textBox1.Text,
                BugId    = Program.bugId
            };


            if (string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox2.Text))
            {
                MessageBox.Show("You must add symptons and cause");
            }
            else
            {
                try
                {
                    bugInformationDAO.Update(bugInformation);
                    MessageBox.Show("Updated");
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
        private void SymptomsAndCause_Load(object sender, EventArgs e)
        {
            if (!Program.isTester)
            {
                comboBox1.Hide();
                label3.Hide();
/*                textBox3.Hide()*/;
                button3.Hide();
                //listBox1.Hide();
                button1.Hide();
                button2.Hide();
                button2.Enabled  = false;
                textBox1.Enabled = false;
                textBox2.Enabled = false;
                button1.Enabled  = false;
                AssignDAO       showMessage = new AssignDAO();
                AssignViewModel message     = showMessage.GetById(Program.bugId);
                textBox3.Text    = message.Description;
                textBox3.Enabled = false;
            }

            BugInformationDAO       bugInformationDAO = new BugInformationDAO();
            BugInformationViewModel bugInformation    = bugInformationDAO.GetById(Program.bugId);

            if (bugInformation != null)
            {
                button1.Hide();
                button2.Show();
                textBox1.Text = bugInformation.Symptons;
                textBox2.Text = bugInformation.Cause;
            }
            else
            {
                button1.Show();
                button2.Show();
            }

            ProgrammerDAO programmerDAO     = new ProgrammerDAO();
            List <ProgrammerViewModel> list = programmerDAO.GetAll();


            foreach (var l in list)
            {
                comboBox1.Items.Add(l.ProgrammerId + "," + l.FullName);
                //comboBox1.DisplayMember = l.FullName;
                //comboBox1.ValueMember = l.ProgrammerId.ToString();
            }

            assignedUser();
        }