protected void CreateAtmlView() { _atmlContentform = new ATMLDocumentBaseForm(); _atmlContentform.IsXmlDocument = true; _atmlContentform.HideOnClose = false; _atmlContentform.AllowSave = false; }
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; } } }