Exemplo n.º 1
0
        private void actionViewAuditTrail_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
        {
            IObjectSpace space = Application.CreateObjectSpace();

            if (space is XPObjectSpace)
            {
                AuditTrailDetails details = new AuditTrailDetails((space as XPObjectSpace).Session, this.View.CurrentObject);
                e.View = Application.CreateDetailView(space, details);
            }
        }
        private void actionViewAuditTrail_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
        {
            IObjectSpace space = Application.CreateObjectSpace();

            if (space is XPObjectSpace)
            {
                object            audit   = this.View.CurrentObject;
                AuditTrailDetails details = new AuditTrailDetails((space as XPObjectSpace).Session, audit);
                details.Name = String.Format(CaptionHelper.GetLocalizedText("Texts", "AuditTrailTitle"), CaptionHelper.GetClassCaption(XafTypesInfo.Instance.FindTypeInfo(audit.GetType()).Type.FullName));
                e.View       = Application.CreateDetailView(space, details);
            }
        }