コード例 #1
0
        private void tagType_SelectedIndexChanged(object sender, EventArgs e)
        {
            String    selectedTag = tagType.Text.ToString();
            roomsConn roomsConn   = new roomsConn();

            rmName.DataSource = roomsConn.getRoomsType(selectedTag);
        }
コード例 #2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Boolean boo = new Boolean();

            roomsConn        roomsConn   = new roomsConn();
            String           selectedNme = assignRoom.Text.ToString();
            roomsAvalability ra          = new roomsAvalability();

            boo = ra.checkRoomIsAvailable(selectedNme);

            if (boo.Equals(true))
            {
                aroomType.DataSource = roomsConn.getRoomsType(selectedNme);
            }
            else
            {
                //    assignRoom.DataSource = roomsConn.checkRooooms(String roomnm);
                MessageBox.Show("Room is already assigned");
            }
        }