I have a wpf application with several buttons that open other windows off the main system.
I call them through:
.Show (); .Focus ();
If the user clicked on the button several times open, I fixed this by placing a global variable that opens when the window opens and closes.
The problem is that I need to focus on the window already open when the user clicks the button again because the window is already open, along with the main one.