Beispiel #1
0
        private void btnadd_Click(object sender, EventArgs e)
        {
            c.Announcement           = txtAnt.Text;
            c.Programs               = txtPro.Text;
            c.Calendar_Of_Activities = txtCal.Text;

            bool sucess = c.Insert(c);

            if (sucess == true)
            {
                MessageBox.Show("Successfully Added");

                Clear();
            }
            else
            {
                MessageBox.Show("Failed To Add. Try Again");
            }

            DataTable dt = c.Select();

            dgvEventInfo.DataSource = dt;
        }
Beispiel #2
0
        private void Events_Load(object sender, EventArgs e)
        {
            DataTable dt = c.Select();

            dgvEventInfo.DataSource = dt;
        }