Beispiel #1
0
        public Highlight(IExpressionBuilderWindow builder, Highlighting highLighting)
        {
            this.Builder      = builder;
            this.HighLighting = highLighting;

            InitializeComponent();

            this.grid.Children.Add((UIElement)highLighting);
            this.HighLighting.Bind();
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        public Highlight(IExpressionBuilderWindow builder, Highlighting highLighting)
        {
            this.Builder = builder;
            this.HighLighting = highLighting;

            InitializeComponent();

            this.grid.Children.Add((UIElement)highLighting);
            this.HighLighting.Bind();
        }
Beispiel #5
0
        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;
            }
        }