private void RefreshActiveGlyph(Point point) { WorkflowView parentView = base.ParentView; if (parentView != null) { DesignerGlyph activeGlyph = this.activeGlyph; if ((this.activeGlyph == null) || !this.activeGlyph.GetBounds(this.activeDesigner, true).Contains(point)) { ActivityDesigner activityDesigner = null; DesignerGlyph glyph2 = this.GlyphFromPoint(point, out activityDesigner); if (this.activeGlyph != null) { parentView.InvalidateLogicalRectangle(this.activeGlyph.GetBounds(this.activeDesigner, true)); } this.activeGlyph = glyph2; this.activeDesigner = activityDesigner; if (this.activeGlyph != null) { parentView.InvalidateLogicalRectangle(this.activeGlyph.GetBounds(this.activeDesigner, true)); } } if (activeGlyph != this.activeGlyph) { if ((this.activeGlyph != null) && this.activeGlyph.CanBeActivated) { parentView.Cursor = Cursors.Hand; } else if (parentView.Cursor == Cursors.Hand) { parentView.Cursor = Cursors.Default; } } } }
protected override void Dispose(bool disposing) { this.designerGlyphProviders.Clear(); this.activeGlyph = null; this.activeDesigner = null; IServiceContainer service = base.GetService(typeof(IServiceContainer)) as IServiceContainer; if ((service != null) && (base.GetService(typeof(IDesignerGlyphProviderService)) != null)) { service.RemoveService(typeof(IDesignerGlyphProviderService)); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { this.designerGlyphProviders.Clear(); this.activeGlyph = null; this.activeDesigner = null; IServiceContainer service = base.GetService(typeof(IServiceContainer)) as IServiceContainer; if ((service != null) && (base.GetService(typeof(IDesignerGlyphProviderService)) != null)) { service.RemoveService(typeof(IDesignerGlyphProviderService)); } base.Dispose(disposing); }
private void RefreshActiveGlyph(Point point) { WorkflowView parentView = ParentView; if (parentView != null) { DesignerGlyph previousActiveGlyph = this.activeGlyph; if (this.activeGlyph == null || !this.activeGlyph.GetBounds(this.activeDesigner, true).Contains(point)) { ActivityDesigner newActiveDesigner = null; DesignerGlyph newActiveGlyph = GlyphFromPoint(point, out newActiveDesigner); if (this.activeGlyph != null) { parentView.InvalidateLogicalRectangle(this.activeGlyph.GetBounds(this.activeDesigner, true)); } this.activeGlyph = newActiveGlyph; this.activeDesigner = newActiveDesigner; if (this.activeGlyph != null) { parentView.InvalidateLogicalRectangle(this.activeGlyph.GetBounds(this.activeDesigner, true)); } } if (previousActiveGlyph != this.activeGlyph) { if (this.activeGlyph != null && this.activeGlyph.CanBeActivated) { parentView.Cursor = Cursors.Hand; } else if (parentView.Cursor == Cursors.Hand) { parentView.Cursor = Cursors.Default; } } } }
internal static int OnComparePriority(DesignerGlyph x, DesignerGlyph y) { return(y.Priority - x.Priority); }
private void RefreshActiveGlyph(Point point) { WorkflowView parentView = base.ParentView; if (parentView != null) { DesignerGlyph activeGlyph = this.activeGlyph; if ((this.activeGlyph == null) || !this.activeGlyph.GetBounds(this.activeDesigner, true).Contains(point)) { ActivityDesigner activityDesigner = null; DesignerGlyph glyph2 = this.GlyphFromPoint(point, out activityDesigner); if (this.activeGlyph != null) { parentView.InvalidateLogicalRectangle(this.activeGlyph.GetBounds(this.activeDesigner, true)); } this.activeGlyph = glyph2; this.activeDesigner = activityDesigner; if (this.activeGlyph != null) { parentView.InvalidateLogicalRectangle(this.activeGlyph.GetBounds(this.activeDesigner, true)); } } if (activeGlyph != this.activeGlyph) { if ((this.activeGlyph != null) && this.activeGlyph.CanBeActivated) { parentView.Cursor = Cursors.Hand; } else if (parentView.Cursor == Cursors.Hand) { parentView.Cursor = Cursors.Default; } } } }
internal static int OnComparePriority(DesignerGlyph x, DesignerGlyph y) { return (y.Priority - x.Priority); }