public GrammarWnd(GrammarEditModel model, Validator validator) { InitializeComponent(); this.status.DataContext = validator; this.DataContext = model; new WindowClosingGuard(this, validator); }
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); }
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); }
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); }