コード例 #1
0
        private void button_update_Click(object sender, EventArgs e)
        {
            ArrayList roomList = new ArrayList();


            roomList.Add(textBox_roomno.Text);
            roomList.Add(textBox_roomtype.Text);
            roomList.Add(textBox_numbed.Text);
            roomList.Add(textBox_status.Text);
            roomList.Add(textBox_price.Text);
            roomList.Add(textBox_building.Text);
            roomList.Add(textBox_floorno.Text);



            DatabaseHelperClass ob = new DatabaseHelperClass(roomList);

            if (ob.updateRoom())
            {
                MessageBox.Show("Updated");
            }
            else
            {
                MessageBox.Show("Error Update");
            }
        }