HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/RMourik/bassol.nl/wwwroot/CMSWebParts/AbuseReport/InlineAbuseReport.ascx.cs
using CMS.Helpers;
using CMS.PortalControls;

public partial class CMSWebParts_AbuseReport_InlineAbuseReport : CMSAbstractWebPart
{
    #region "Properties"

    /// <summary>
    /// Gets or sets Confirmation text.
    /// </summary>
    public string ConfirmationText
    {
        get
        {
            return ValidationHelper.GetString(GetValue("ConfirmationText"), editReport.ConfirmationText);
        }
        set
        {
            SetValue("ConfirmationText", value);
            editReport.ConfirmationText = value;
        }
    }


    /// <summary>
    /// Gets or sets Report title.
    /// </summary>
    public string ReportTitle
    {
        get
        {
            return ValidationHelper.GetString(GetValue("ReportTitle"), editReport.ReportTitle);
        }
        set
        {
            SetValue("ReportTitle", value);
            editReport.ReportTitle = value;
        }
    }


    /// <summary>
    /// Gets or sets Report dialog title.
    /// </summary>
    public string ReportDialogTitle
    {
        get
        {
            return ValidationHelper.GetString(GetValue("ReportDialogTitle"), editReport.ReportDialogTitle);
        }
        set
        {
            SetValue("ReportDialogTitle", value);
            editReport.ReportDialogTitle = value;
        }
    }


    /// <summary>
    /// Gets or sets Report Object ID.
    /// </summary>
    public int ReportObjectID
    {
        get
        {
            return ValidationHelper.GetInteger(GetValue("ReportObjectID"), editReport.ReportObjectID);
        }
        set
        {
            SetValue("ReportObjectID", value);
            editReport.ReportObjectID = value;
        }
    }


    /// <summary>
    /// Gets or sets Report Object type.
    /// </summary>
    public string ReportObjectType
    {
        get
        {
            return ValidationHelper.GetString(GetValue("ReportObjectType"), editReport.ReportObjectType);
        }
        set
        {
            SetValue("ReportObjectType", value);
            editReport.ReportObjectType = value;
        }
    }

    #endregion


    #region "Stop processing"

    /// <summary>
    /// Returns true if the control processing should be stopped.
    /// </summary>
    public override bool StopProcessing
    {
        get
        {
            return base.StopProcessing;
        }
        set
        {
            base.StopProcessing = value;
            editReport.StopProcessing = value;
        }
    }

    #endregion


    /// <summary>
    /// Content loaded event handler.
    /// </summary>
    public override void OnContentLoaded()
    {
        base.OnContentLoaded();
        SetupControl();
    }


    /// <summary>
    /// Initializes the control properties.
    /// </summary>
    protected void SetupControl()
    {
        if (StopProcessing)
        {
            // Do nothing
        }
        else
        {
            editReport.ConfirmationText = ConfirmationText;
            editReport.ReportTitle = ReportTitle;
            editReport.ReportObjectID = ReportObjectID;
            editReport.ReportObjectType = ReportObjectType;
            editReport.ReportDialogTitle = ReportDialogTitle;
            editReport.ViewMode = ViewMode;
        }
    }
}