Example #1
0
        public void InitialiseProperties(Point position, FrameworkElement visualElement, IRunOrDebugView runOrDebugView, IGherkinText gherkinText)
        {
            View = runOrDebugView;
            RelativeVisualElement = visualElement;
            Position    = Point.Subtract(position, new Vector(3, 3));
            GherkinText = gherkinText;

            // Dont want multiple events to fire.
            if (initialized)
            {
                return;
            }

            OnPropertyChanged(() => Buttons);
            PropertyChanged += (s, e) =>
            {
                if (e.PropertyName == "SelectedItem" && SelectedItem != null)
                {
                    SelectedItem.Command.Execute(null);
                    View.Deselect();
                    IsVisible = false;
                }
            };
            initialized = true;
        }
Example #2
0
        public void InitialiseProperties(Point position, FrameworkElement visualElement, IRunOrDebugView runOrDebugView, IGherkinText gherkinText)
        {
            View = runOrDebugView;
            RelativeVisualElement = visualElement;
            Position = Point.Subtract(position, new Vector(3, 3));
            GherkinText = gherkinText;

            // Dont want multiple events to fire.
            if (initialized)
                return;

            OnPropertyChanged(() => Buttons);
            PropertyChanged += (s, e) =>
                {
                    if (e.PropertyName == "SelectedItem" && SelectedItem != null)
                    {
                        SelectedItem.Command.Execute(null);
                        View.Deselect();
                        IsVisible = false;
                    }
                };
            initialized = true;
        }
Example #3
0
 public PlayGlyphTag(IGherkinText gherkinText)
 {
     this.gherkinText = gherkinText;
 }
Example #4
0
 public PlayGlyphTag(IGherkinText gherkinText)
 {
     this.gherkinText = gherkinText;
 }