Beispiel #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();
            }
        }
Beispiel #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;
        }
Beispiel #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBBaseLineExporter( RBArtDocument doc )
     : base(doc)
 {
 }
Beispiel #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;
 }
Beispiel #5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBExportToTSV( RBArtDocument doc )
     : base(doc)
 {
 }
Beispiel #6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBExportToMediaRSS( RBArtDocument doc )
     : base(doc)
 {
 }
Beispiel #7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="doc">The document that will be exported.</param>
 public RBExportToHTML( RBArtDocument doc )
     : base(doc)
 {
 }