/// <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(); } }
/// <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; }
/// <summary> /// Constructor. /// </summary> /// <param name="doc">The document that will be exported.</param> public RBBaseLineExporter( RBArtDocument doc ) : base(doc) { }
/// <summary> /// Constructor. /// </summary> /// <param name="doc">The document that will be exported.</param> public RBBaseExporter( RBArtDocument doc ) { // Remember the document. this.doc = doc; }
/// <summary> /// Constructor. /// </summary> /// <param name="doc">The document that will be exported.</param> public RBExportToTSV( RBArtDocument doc ) : base(doc) { }
/// <summary> /// Constructor. /// </summary> /// <param name="doc">The document that will be exported.</param> public RBExportToMediaRSS( RBArtDocument doc ) : base(doc) { }
/// <summary> /// Constructor. /// </summary> /// <param name="doc">The document that will be exported.</param> public RBExportToHTML( RBArtDocument doc ) : base(doc) { }