Remake of the MagicManager using wpf instead of Forms.