/// <summary>
        /// button event to add bugs
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_add_Click(object sender, EventArgs e)
        {
            string project    = txt_project.Text;
            string className  = txt_class.Text;
            string method     = txt_method.Text;
            string lineNo     = txt_lineNo.Text;
            string endline    = txt_endlinenub.Text;
            string codeAuthor = txt_codeAuthor.Text;
            string year       = combo_year.Text;
            string month      = combo_month.Text;
            string date       = combo_date.Text;
            string sourcecode = txt_sourceCode.Text;

            if (!string.IsNullOrEmpty(project) &&
                !string.IsNullOrEmpty(month) && !string.IsNullOrEmpty(date) &&
                !string.IsNullOrEmpty(year) && !string.IsNullOrEmpty(sourcecode) && !string.IsNullOrEmpty(path))
            {
                Bugs bugs = new Bugs()
                {
                    Addedby     = email,
                    Projectname = project,
                    Classname   = className,
                    Method      = method,
                    Lineno      = lineNo,
                    Endline     = endline,
                    Author      = codeAuthor,
                    Year        = year,
                    Month       = month,
                    Day         = date,
                    Sourcecode  = sourcecode,
                    Imgfile     = path,
                    Status      = "Active"
                };

                BugsController bController = new BugsController();
                Boolean        rep         = bController.AddBug(bugs);
                if (rep)
                {
                    MessageBox.Show("Bug added succesful");
                    txt_project.Text    = "";
                    txt_class.Text      = "";
                    txt_codeAuthor.Text = "";
                    txt_lineNo.Text     = "";
                    txt_endlinenub.Text = "";
                    txt_method.Text     = "";
                    txt_sourceCode.Text = "";
                    combo_date.Text     = "";
                    combo_month.Text    = "";
                    combo_year.Text     = "";
                    lbl_path.Text       = "";
                }
            }
            else
            {
                MessageBox.Show("unsuccesful");
            }
        }