public void GenerateAndShowDiagramFor(TestInformationGeneratedMessage message)
 {
     if (frm == null)
     {
         frm = new SequenceDiagram(_mode, _dte, _transparent);
         frm.Closed += frm_Closed;
         frm.WindowState = FormWindowState.Maximized;
     }
     var parent = Control.FromHandle(new IntPtr(_dte.MainWindow.HWnd));
     frm.Parent = parent;
     frm.Location = NativeWinPlacementAPI.GetPlacement(new IntPtr(_dte.MainWindow.HWnd));
     frm.StartPosition = FormStartPosition.CenterScreen;
     frm.CreateDiagramFor(message);
     frm.Show();
     _lastSignature = message.Item;
 }
Exemplo n.º 2
0
        public void GenerateAndShowDiagramFor(TestInformationGeneratedMessage message)
        {
            if (frm == null)
            {
                frm             = new SequenceDiagram(_mode, _dte, _transparent);
                frm.Closed     += frm_Closed;
                frm.WindowState = FormWindowState.Maximized;
            }
            var parent = Control.FromHandle(new IntPtr(_dte.MainWindow.HWnd));

            frm.Parent        = parent;
            frm.Location      = NativeWinPlacementAPI.GetPlacement(new IntPtr(_dte.MainWindow.HWnd));
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.CreateDiagramFor(message);
            frm.Show();
            _lastSignature = message.Item;
        }
Exemplo n.º 3
0
 void frm_Closed(object sender, EventArgs e)
 {
     frm = null;
 }
 void frm_Closed(object sender, EventArgs e)
 {
     frm = null;
 }