winbox- How does it interact with a server?(programing)

hi
i am programer c#.
i will create program to manage the users.
my questions.
The winbox it opensource?
How do I change the code?Is it possible?
When we set case.(set ip address to ether) How does it interact with a server?

notes:
i read “Manual:API” and “API command notes” from wiki.mikrotik.com

No, Winbox is not open source (it is not possible to change the code).
You may create and use own application via API (but not Winbox),
http://wiki.mikrotik.com/wiki/API

To add to Sergejs response, Winbox is not using the API, but since Winbox is not open source, you will have to use the API.