Exemplo n.º 1
0
 public GrammarWnd(GrammarEditModel model, Validator validator)
 {
     InitializeComponent();
     this.status.DataContext = validator;
     this.DataContext = model;
     new WindowClosingGuard(this, validator);
 }
Exemplo n.º 2
0
 public TopicWnd(TopicModel model, Validator validator)
 {
     InitializeComponent();
     this.status.DataContext = validator;
     this.DataContext = model;
     this.Loaded += new RoutedEventHandler(TopicWnd_Loaded);
     InputLanguageUtils.SetTargetInputLangage();
     Dispatcher.CurrentDispatcher.BeginInvoke( (Func<bool>)(delegate() { this.title.Select(0, model.Title.Length); return false; }), DispatcherPriority.Background);
 }
Exemplo n.º 3
0
 public ExampleWnd(ExampleEditModel model, Validator validator)
 {
     InitializeComponent();
     this.status.DataContext = validator;
     this.DataContext = model;
     this.native.GotFocus += new RoutedEventHandler(native_GotFocus);
     this.target.GotFocus += new RoutedEventHandler(target_GotFocus);
     new WindowClosingGuard(this, validator);
 }
Exemplo n.º 4
0
        public RuleWnd(RuleEditModel model, Validator validator)
        {
            InitializeComponent();
            this.status.DataContext = validator;
            this.DataContext = model;

            this.comment.IsVisibleChanged += new DependencyPropertyChangedEventHandler(comment_IsVisibleChanged);
            this.comment.GotFocus += new RoutedEventHandler(comment_GotFocus);
            this.comment.LostFocus += new RoutedEventHandler(comment_LostFocus);

            new WindowClosingGuard(this, validator);
        }