Changed everything to WPF

New structures are introduced