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); }
private void btnConnect_Click(object sender, EventArgs e) { var databaseFunctions = new DatabaseFunctions.DatabaseFunctions(); var allrooms = databaseFunctions.GetAllRooms(ConnectionString); }