How to control multiple pins with WPF (usb connection)

Hi, i would like to make a project with several relays.
Therefor i need to know how to control more pins on the arduino board.
I have seen a good tutorial on :

http://www.c-sharpcorner.com/UploadFile/e46423/arduino-control-using-a-windows-presentation-foundation-(wpf/

but it does not explain how to use more pins than one.

can someone help please?
thanks!

Bert1985:
but it does not explain how to use more pins than one.

You have not explained your requirement clearly.

Do you want to be able to change several pins one at a time. or several all at the same time?

In either case I think I would get the c# program to send a composite message covering the states of all the pins. Perhaps something like <1001> which would mean that the 1st and 4th pins are ON and the other are OFF. Then the Arduino just needs to read through the array of characters to figure out what to do. Have a look at the 3rd example in Serial Input Basics

I am not familiar with C# so I am not going to make suggestions about that part of the code beyond suggesting that the
private void on_Click() function should update the appropriate character in an array in the PC program depending on which PC button was pressed. And you should have another function that gets called perhaps 10 times per second to send the data to the Arduino.

...R

thank you!