Update Rules.xaml.cs