[ModernApp|ModernCSApp] Fix SharpDx changes

Fix the frameowrk based on SharpDx changes