void onmkDirRemoteComplete(string filename) { EventHandler <mkDirRemoteCompleteEventArgs> temp = mkDirRemoteComplete; if (temp != null) { mkDirRemoteCompleteEventArgs e = new mkDirRemoteCompleteEventArgs(); e.filename = filename; context.Post(delegate(object state) { mkDirRemoteComplete(this, e); }, null); } }
void ftpobject_mkDirRemoteComplete(object sender, mkDirRemoteCompleteEventArgs e) { statusBar.Text = "Папка создана: " + e.filename + Environment.NewLine + statusBar.Text; refreshRemote(); }