Click here to Skip to main content
15,892,298 members
Articles / Desktop Programming / Windows Forms

Windows Vista Sidebar Gadget and Standalone :: FTP-BOX

Rate me:
Please Sign up or sign in to vote.
2.50/5 (3 votes)
30 Mar 20072 min read 48.8K   901   24  
Simple FTP Client
using System;
using System.Collections.Generic;
using System.Text;

namespace DSn.FtpBox.Objects
{
  public class JobItem
  {
    public event EventHandler Completed;
    public event EventHandler ProgressChanged;
    public event EventHandler DoAbort;

    private JobType jobType;
    public JobType JobType {
      get { return jobType; }
      set { jobType = value; }
    }

    private FtpFile ftpFile;
    public FtpFile FtpFile {
      get { return ftpFile; }
      set { ftpFile = value; }
    }

    private string localFile;
    public string LocalFile {
      get { return localFile; }
      set { localFile = value; }
    }

    private int progress;
    public int Progress {
      get { return progress; }
      set { progress = value; 
        if (ProgressChanged != null) ProgressChanged(this, new EventArgs());
      }
    }

    public void OnCompleted() {
      if (Completed != null) Completed(this, new EventArgs());
    }

    public void Abort() {
      if(DoAbort != null) DoAbort(this, new EventArgs());
    }
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions