상속: WeifenLuo.WinFormsUI.Docking.DockContent, IATMLDockableWindow
예제 #1
0
 protected void CreateAtmlView()
 {
     _atmlContentform = new ATMLDocumentBaseForm();
     _atmlContentform.IsXmlDocument = true;
     _atmlContentform.HideOnClose   = false;
     _atmlContentform.AllowSave     = false;
 }
예제 #2
0
 protected void ShowAtmlContent <T>(T atmlObject)
 {
     if (null != atmlObject)
     {
         if (_atmlContentform == null || _atmlContentform.IsDisposed)
         {
             CreateAtmlView();
             LoadAtmlView(atmlObject);
             if (_atmlContentform != null)
             {
                 _atmlContentform.Show(this);
                 _atmlContentform.FormClosed += delegate { OnAtmlViewHidden(); };
                 OnAtmlViewShown();
             }
             SyncFormLocations();
         }
         else if (_atmlContentform.Visible)
         {
             _atmlContentform.Close();
             _atmlContentform = null;
         }
     }
 }