C#WinForm example source code---the design of magnetic form