Exemplo n.º 1
0
 public EditRule(string title, PrjRule src, IHost host)
 {
     InitializeComponent();
     Title = title;
     if (src == null)
     {
         Rule = new PrjRule(null);
     }
     else
     {
         Rule = src.Clone(null);
     }
     DataContext  = Rule;
     Host         = host;
     this.Loaded += (sender, e) => patternBox.Focus();
 }