private void buttonAdd_Click(object sender, EventArgs e) { bool res = pc.ManageProjects(0, textBoxProject.Text, dtpStartdate.Text, dtpEnddate.Text, txtRichDescription.Text, 1); if (res == true) { MessageBox.Show("Successfully launched a new project!!", "New Project", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Failed to launch the project!!", "Launching failed", MessageBoxButtons.OK, MessageBoxIcon.Error); } }