Exemplo n.º 1
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            if (windowService == null)
                throw new ArgumentNullException("windowService");
            if (objectProvider == null)
                throw new ArgumentNullException("objectProvider");

            var data = (DbTable)objectProvider.GetObject();
            using (var displayForm = new DbTableVisualizerForm())
            {
                displayForm.Table = data;
                displayForm.Text = data.ToString();
                windowService.ShowDialog(displayForm);
            }
        }
Exemplo n.º 2
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            if (windowService == null)
            {
                throw new ArgumentNullException("windowService");
            }
            if (objectProvider == null)
            {
                throw new ArgumentNullException("objectProvider");
            }


            var data = (DbTable)objectProvider.GetObject();

            using (var displayForm = new DbTableVisualizerForm())
            {
                displayForm.Table = data;
                displayForm.Text  = data.ToString();
                windowService.ShowDialog(displayForm);
            }
        }