Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 3
0
 public PlayGlyphTag(IGherkinText gherkinText)
 {
     this.gherkinText = gherkinText;
 }
Esempio n. 4
0
 public PlayGlyphTag(IGherkinText gherkinText)
 {
     this.gherkinText = gherkinText;
 }