Few days ago I encountered an error. When I try to move a recorded function from UIMap.designer.cs to UIMap.cs, visual studio got crashed. I was unable to find why it stopped working correctly. After searching on forums etc I still get no clue.