protected override void OnActivated() { base.OnActivated(); _viewStrategy = this.Application.ShowViewStrategy as MdiShowViewStrategy; if (_viewStrategy != null) { _viewStrategy.CustomCanCreateViewDocumentControlDescription += ViewStrategy_CustomCanCreateViewDocumentControlDescription; _viewStrategy.CustomCanProcessDocumentControlDescription += ViewStrategy_CustomCanProcessDocumentControlDescription; } }
public WXafApplication() { Security = new SecurityComplex(); ShowViewStrategy = new MdiShowViewStrategy(this); }