Example #1
0
        /// <summary>
        /// Populate the window based on the content of a RedBubble art document.
        /// </summary>
        /// <param name="doc"></param>
        protected void DocToWindow( RBArtDocument doc )
        {
            // Pull out the "header" items.
            edtUserID.Text   = doc.UserName;
            dtLastDownloaded = doc.LastDownloaded;

            // Pull out the "body".
            lvArt.BeginUpdate();
            try
            {
                foreach ( RBArtItem item in doc.Items )
                {
                    AddArtItemToList( item );
                }
            }
            finally
            {
                lvArt.EndUpdate();
            }
        }
Example #2
0
        /// <summary>
        /// Return a RedBubble art document based on the content of the window.
        /// </summary>
        /// <returns></returns>
        protected RBArtDocument WindowToDoc()
        {
            // Create the document.
            RBArtDocument doc = new RBArtDocument();

            // Populate the "header" details.
            doc.UserName       = UserID;
            doc.LastDownloaded = dtLastDownloaded;

            // Populate the "body".
            foreach ( ListViewItem item in lvArt.Items )
            {
                doc.Items.Add( new RBArtItem( item.Text, item.SubItems[ 1 ].Text ) );
            }

            // Return the document.
            return doc;
        }
Example #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBBaseLineExporter( RBArtDocument doc )
     : base(doc)
 {
 }
Example #4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBBaseExporter( RBArtDocument doc )
 {
     // Remember the document.
     this.doc = doc;
 }
Example #5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBExportToTSV( RBArtDocument doc )
     : base(doc)
 {
 }
Example #6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBExportToMediaRSS( RBArtDocument doc )
     : base(doc)
 {
 }
Example #7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBExportToHTML( RBArtDocument doc )
     : base(doc)
 {
 }