moved Code from WF to WPF

todo: ruleslist not notified on textbox-edit