protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
 {
     Regex r = (Regex) objectProvider.GetObject();
     MatchCollectionVisualizerCtl hostedControl = new MatchCollectionVisualizerCtl();
     using (VisualizerDisplayForm form = new VisualizerDisplayForm("Regex Details"))
     {
         hostedControl.DisplayRegex(r);
         form.HostControl(hostedControl);
         windowService.ShowDialog((Form) form);
     }
 }
 protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
 {
     MatchCollection matches = (MatchCollection) objectProvider.GetObject();
     MatchCollectionVisualizerCtl hostedControl = new MatchCollectionVisualizerCtl();
     hostedControl.DisplayMatches(matches);
     using (VisualizerDisplayForm form = new VisualizerDisplayForm("Matches Details"))
     {
         form.HostControl(hostedControl);
         windowService.ShowDialog((Form) form);
     }
 }
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            Regex r = (Regex)objectProvider.GetObject();
            MatchCollectionVisualizerCtl hostedControl = new MatchCollectionVisualizerCtl();

            using (VisualizerDisplayForm form = new VisualizerDisplayForm("Regex Details"))
            {
                hostedControl.DisplayRegex(r);
                form.HostControl(hostedControl);
                windowService.ShowDialog((Form)form);
            }
        }
Beispiel #4
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            string pattern = (string)objectProvider.GetObject();
            MatchCollectionVisualizerCtl hostedControl = new MatchCollectionVisualizerCtl();

            hostedControl.DisplayPattern(pattern);
            using (VisualizerDisplayForm form = new VisualizerDisplayForm("Matches Details"))
            {
                form.HostControl(hostedControl);
                windowService.ShowDialog((Form)form);
            }
        }