Esempio n. 1
0
        public void Should_create_a_file()
        {
            var generator = new ChannelGraphGenerator();

            string filename = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "graph.png");

            generator.SaveGraphToFile(_channel, 2560, 1920, filename);
        }
Esempio n. 2
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            try
            {
                var data = (ChannelGraphData)objectProvider.GetObject();

                Graph graph = new ChannelGraphGenerator().CreateGraph(data);

                using (var form = new GraphVisualizerForm(graph, "Channel Visualizer"))
                    windowService.ShowDialog(form);
            }
            catch (InvalidCastException)
            {
                MessageBox.Show("The selected data is not of a type compatible with this visualizer.",
                                GetType().ToString());
            }
        }
Esempio n. 3
0
        public void Should_create_a_file()
        {
            var generator = new ChannelGraphGenerator();

            string filename = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "graph.png");

            generator.SaveGraphToFile(_channel, 2560, 1920, filename);
        }