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