Example #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            BugController bugController = new BugController();
            DateTime      date          = DateTime.Now;
            bool          status        = bugController.InsertFixedBug(Convert.ToInt32(txtBugId.Text), txtFixedCode.Text, user.Username, date);

            if (status == true)
            {
                MessageBox.Show("fixed bug inserted");
            }
            else
            {
                MessageBox.Show("Something went wrong: unable to insert fixed code in database");
            }
        }