public Highlight(IExpressionBuilderWindow builder, Highlighting highLighting) { this.Builder = builder; this.HighLighting = highLighting; InitializeComponent(); this.grid.Children.Add((UIElement)highLighting); this.HighLighting.Bind(); }
public Highlighting(IHighlightsHelper highlightHelper, IExpressionBuilderWindow expressionBuilder) { InitializeComponent(); ExpressionBuilder = expressionBuilder; this.HighlightHelper = highlightHelper; this.Patterns = highlightHelper.Patterns; this.buttonColour.SelectedColour = ((SolidColorBrush)this.textBoxPattern.Foreground).Color; this.buttonBackColour.SelectedColour = ((SolidColorBrush)this.textBoxPattern.Background).Color; }
public Highlighting(IHighlightsHelper highlightHelper, IExpressionBuilderWindow expressionBuilder) { InitializeComponent(); ExpressionBuilder = expressionBuilder; this.HighlightHelper = highlightHelper; this.Patterns = highlightHelper.Patterns; this.buttonColour.SelectedColour = ((SolidColorBrush)this.textBoxPattern.Foreground).Color; this.buttonBackColour.SelectedColour = ((SolidColorBrush)this.textBoxPattern.Background).Color; }
public Highlight(IExpressionBuilderWindow builder, Highlighting highLighting) { this.Builder = builder; this.HighLighting = highLighting; InitializeComponent(); this.grid.Children.Add((UIElement)highLighting); this.HighLighting.Bind(); }
private void find_ExpressionBuilderButtonClick(object sender, EventArgs e) { IExpressionBuilderWindow builder = this.WindowFactory.CreateWindow(); builder.ShowDialog(); if (builder.DialogResult.HasValue && builder.DialogResult.Value) { this.find.SearchTerm = builder.Expression.Text; } }