Example #1
0
        internal void DisplayBabylon(string strTitle)
        {
            int left, top, width, height;

            this.visApplication.ActiveWindow.GetWindowRect(out left, out top, out width, out height);
            if (frmBabylonPanel == null)
            {
                if (VisualShow3DLightUtil.AddAnchorWindowToVisio(visApplication, strTitle,
                                                                 (int)Visio.VisWindowStates.visWSDockedBottom,
                                                                 false, true,
                                                                 0, 100, width, (int)(height * 0.5), "", "Vue 3D", 1,
                                                                 ref visWindowBabylon) == true)
                {
                    frmBabylonPanel = new FrmBabylonScene(visApplication);
                    if (VisualShow3DLightUtil.AddFormToAnchorWindow(visWindowBabylon, frmBabylonPanel) == true)
                    {
                    }
                    else
                    {
                        frmBabylonPanel.Close();
                        frmBabylonPanel = null;
                    }
                }
                else
                {
                    frmBabylonPanel.Dispose();
                    frmBabylonPanel = null;
                }
            }
            else
            {
            }
        }
Example #2
0
 internal void BabylonClose()
 {
     if (frmBabylonPanel != null)
     {
         frmBabylonPanel.Close();
         frmBabylonPanel = null;
     }
 }