예제 #1
0
        private void btnAmendEvent_Click(object sender, EventArgs e)
        {
            frmAmendEvent add = new frmAmendEvent();

            add.Show();
            this.Hide();
        }
예제 #2
0
        public void updateEvent()
        {
            //Connection
            OracleConnection conn = new OracleConnection(DBConnect.oradb);

            conn.Open();
            OracleCommand cmd = conn.CreateCommand();

            sqlStatements();

            cmd.CommandText = updateSql;

            //excute
            cmd.ExecuteNonQuery();

            //close datatbase connection
            conn.Close();

            gbEditEvent.Refresh();


            DialogResult dialog = MessageBox.Show("The event has been Successfully Updated \nDo you want continue updating?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (dialog == DialogResult.Yes)
            {
                frmAmendEvent add = new frmAmendEvent();
                this.Hide();
                add.Show();
            }
            if (dialog == DialogResult.No)
            {
                frmMainMenu menu = new frmMainMenu();
                this.Hide();
                menu.Show();
            }
        }