26/M
To make a long story short, my ex sits in front of me in class. We broke up and it's been downhill for me ever since. It only has gotten better through my own perseverance to live and find places like this to dump. 

Anyways, she sits in front of me and we have managed to make small talk. This was really the first time we have been some what civil because I feel like the symptoms of my disorder have definitely impacted our now pretty much non existent friendship.

I see the tinder app on her phone. I let out "really.." because she had told me that she was talking to someone and didn't want to even spend time with me out of school because she felt it would effect what she sees in front of her. I pretty much have a panic attack, and she tells me that the guy she's talking to, she already knew. She continues to talk and I immediately stand up, grab my phone and walk out. I go straight to the bathroom and practice breathing techniques so I can get better. I go back into the room but I start to think about everything and I start to have another anxiety attack, I attempted to focus my attention on writing my thoughts down and controlling what they are by physically writing what I'm thjnking, how I'm feeling and for a split second I can grasp my emotions..

I just hate losing my temper, are there any ways to prevent my outlandish behavior when I see things that really have a potential to trigger those intense emotions? And are there techniques that will alow me to focus in class rather than devote the hour spent in class having to be stuck to a sheet of paper? 

Thanks 