public void GenerateAndShowGraphFor(VisualGraphGeneratedMessage message) { if (_visualizer == null) { _visualizer = new AGLVisualizer(_mode, _dte, _transparent, _client); _visualizer.Closed += _visualizer_Closed; _visualizer.WindowState = FormWindowState.Maximized; } var parent = Control.FromHandle(new IntPtr(_dte.MainWindow.HWnd)); _visualizer.Parent = parent; _visualizer.Location = NativeWinPlacementAPI.GetPlacement(new IntPtr(_dte.MainWindow.HWnd)); _visualizer.StartPosition = FormStartPosition.CenterScreen; Logger.Write("Location is " + _visualizer.Location); var root = message.Nodes.First(x => x.IsRootNode); if(root != null) _lastSignature = root.FullName; _visualizer.Display(message); _visualizer.Visible = false; _visualizer.Show(); }
public void GenerateAndShowGraphFor(VisualGraphGeneratedMessage message) { if (_visualizer == null) { _visualizer = new AGLVisualizer(_mode, _dte, _transparent, _client); _visualizer.Closed += _visualizer_Closed; _visualizer.WindowState = FormWindowState.Maximized; } var parent = Control.FromHandle(new IntPtr(_dte.MainWindow.HWnd)); _visualizer.Parent = parent; _visualizer.Location = NativeWinPlacementAPI.GetPlacement(new IntPtr(_dte.MainWindow.HWnd)); _visualizer.StartPosition = FormStartPosition.CenterScreen; Logger.Write("Location is " + _visualizer.Location); var root = message.Nodes.First(x => x.IsRootNode); if (root != null) { _lastSignature = root.FullName; } _visualizer.Display(message); _visualizer.Visible = false; _visualizer.Show(); }
void _visualizer_Closed(object sender, EventArgs e) { _visualizer = null; }
void _visualizer_Closed(object sender, EventArgs e) { _visualizer = null; }