protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { // TODO: Get the object to display a visualizer for. // Cast the result of objectProvider.GetObject() // to the type of the object being visualized. object data = (object)objectProvider.GetObject(); // TODO: Display your view of the object. // Replace displayForm with your own custom Form or Control. MatchesVisualizerForm displayForm = new MatchesVisualizerForm(); displayForm.setDisplay((MatchCollection)data); windowService.ShowDialog(displayForm); }