Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var    databaseFunctions   = new DatabaseFunctions.DatabaseFunctions();
            int    roomCapacity        = Convert.ToInt32(numRoomCapacity.Value);
            int    HasProjector        = Convert.ToInt32(chBxProjector.Checked);
            int    HasToiletFacilities = Convert.ToInt32(chBxToiletFacilities.Checked);
            string RoomName            = txBxRoomName.Text;

            databaseFunctions.InsertRoom(ConnectionString, HasProjector, roomCapacity, HasToiletFacilities, RoomName);
        }
Exemplo n.º 2
0
 private void btnConnect_Click(object sender, EventArgs e)
 {
     var databaseFunctions = new DatabaseFunctions.DatabaseFunctions();
     var allrooms          = databaseFunctions.GetAllRooms(ConnectionString);
 }