The error says this:
'NezamMohandesi.WindowManager' does not contain a definition for 'CloseButton_Click'
It mentions
WindowManager
, but the class in your code block is called
WindowsManager
(with an
s
between Window and Manager). You'll have to rename your class WindowsManager to WindowManager, or making sure that your XAML code refers to WindowsManager.