Exemple #1
0
        private void Courses_Button_Click(object sender, EventArgs e)
        {
            AvailableCourses C = new AvailableCourses();

            C.YourName_Label.Text = YourName_Label.Text;
            C.Show();
        }
        private void Submit_Button_Click(object sender, EventArgs e)
        {
            AvailableCourses A = new AvailableCourses();
            int c          = int.Parse(controllerObj.GetCountOfFeedback().ToString());
            int FeedbackNo = c + 1 + 3000;

            int dt1 = controllerObj.AddFeedback(FeedbackNo, no.Text.ToString(), int.Parse(Rate_numericUpDown.Value.ToString()), GiveFeedback_TextBox.Text.ToString());

            if (dt1 != 0)
            {
                MessageBox.Show("Your feedback is added to this course! thank you for your response ");
            }
            else
            {
                MessageBox.Show("Unable to add your feedback, please try again");
            }
        }