Pneumatics Programming

I need to change our robot code from last year to run the modifications we have made to our robot. We are now running the arm with a pneumatic piston. How do I set up the code to reference a compressor and a solenoid and have one button raise the piston and the other one lower it?

We have pneumatic pistons on our Breakaway robot two years ago. Here is a link to the code. You can look at either the Lid or the Kicker as an example.
http://proj.titanrobotics.net/hg/Frc/2011/code/file/5280d34bc4b7/PostSeason/Breakaway