Inheritance: 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;
         }
     }
 }