cad with Visual Studio C#

Hello,

I am a beginner and would like to learn how to program CAD software.

now for the start.

1) how do I insert the panel?
2) how to make my one line and polygon line draw.

I hope someone can help me or where I can find a simple example.

thanks in advance