protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { if (windowService == null) throw new ArgumentNullException("windowService"); if (objectProvider == null) throw new ArgumentNullException("objectProvider"); var profilingInformation = (ProfilingInformation)objectProvider.GetObject(); using (var displayForm = new DocumentSessionView { ProfilingInformation = profilingInformation }) { displayForm.Text = profilingInformation.At.ToString(); windowService.ShowDialog(displayForm); } }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { if (windowService == null) { throw new ArgumentNullException("windowService"); } if (objectProvider == null) { throw new ArgumentNullException("objectProvider"); } var profilingInformation = (ProfilingInformation)objectProvider.GetObject(); using (var displayForm = new DocumentSessionView { ProfilingInformation = profilingInformation }) { displayForm.Text = profilingInformation.At.ToString(); windowService.ShowDialog(displayForm); } }