Exemplo n.º 1
0
        /// <summary>
        /// Creates exact copy of this object.
        /// </summary>
        /// <returns>The copy of this object.</returns>
        public DesignerRestrictions Clone()
        {
            DesignerRestrictions restrictions = new DesignerRestrictions();

            restrictions.Assign(this);
            return(restrictions);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DesignerSettings"/> class.
 /// </summary>
 public DesignerSettings()
 {
     FIcon              = ResourceLoader.GetIcon("icon16.ico");
     FDefaultFont       = DrawUtils.DefaultReportFont;
     FRestrictions      = new DesignerRestrictions();
     FText              = "";
     FCustomConnections = new List <ConnectionEntry>();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Copies the contents of another, similar object.
 /// </summary>
 /// <param name="source">Source object to copy the contents from.</param>
 public void Assign(DesignerRestrictions source)
 {
     DontLoadReport          = source.DontLoadReport;
     DontSaveReport          = source.DontSaveReport;
     DontCreateReport        = source.DontCreateReport;
     DontPreviewReport       = source.DontPreviewReport;
     DontShowRecentFiles     = source.DontShowRecentFiles;
     DontEditData            = source.DontEditData;
     DontCreateData          = source.DontCreateData;
     DontChangeReportOptions = source.DontChangeReportOptions;
     DontInsertObject        = source.DontInsertObject;
     DontInsertBand          = source.DontInsertBand;
     DontDeletePage          = source.DontDeletePage;
     DontCreatePage          = source.DontCreatePage;
     DontChangePageOptions   = source.DontChangePageOptions;
 }