Exemplo n.º 1
0
        internal void OnStatusChange(string message, long uploaded, long downloaded)
        {
            EventHandler <statusChangeEventArgs> temp = statusChange;

            if (temp != null)
            {
                statusChangeEventArgs e = new statusChangeEventArgs();
                e.message         = message;
                e.bytesUploaded   = uploaded;
                e.bytesDownloaded = downloaded;
                context.Post(delegate(object state) { statusChange(this, e); }, null);
            }
        }
Exemplo n.º 2
0
 void ftpobject_statusChange(object sender, statusChangeEventArgs e)
 {
     statusBar.Text = e.message + System.Environment.NewLine + statusBar.Text;
 }